summaryrefslogtreecommitdiffstats
path: root/Project.h
blob: e3ed913b10e47df68a12473132f2a3bc3fbb20be (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef PROJECT_H_
#define PROJECT_H_

#include "Configuration.h"
#include "Executable.h"
#include "SystemConfiguration.h"

#include <string>
#include <vector>

class Project : public Configurable
{
	public:
		Project(int argc, char** argv);

		void run();
		const SystemConfiguration& systemConfiguration() const;
		SystemConfiguration& systemConfiguration();

		Project& add(const SharedPtr<Executable>& E);

		ProcessController* createNextTask();

		void error(const std::string& Error) const;

	private:
		void configure();
		void readProjectFile(bool DiscoveryMode);
		void readSystemConfiguration(bool OnlyFromCache);

		std::string ProjectFile;
		std::vector<SharedPtr<Executable> > Executables;
		bool DiscoverMode;
		SystemConfiguration System;

	public:
		static Project& it();
};

#endif