diff options
Diffstat (limited to 'task.h')
-rw-r--r-- | task.h | 30 |
1 files changed, 5 insertions, 25 deletions
@@ -3,33 +3,13 @@ #include <vector> #include <string> -#include <future> -#include <filesystem> - -struct BuildConfiguration; -struct Settings; class Task { public: - Task(const BuildConfiguration& config, - const Settings& settings, - const std::string& source); - - bool dirty(); - - int run(); - int clean(); - - std::vector<std::string> depends() const; - - std::string target() const; - -private: - std::filesystem::path sourceFile; - std::filesystem::path targetFile; - std::filesystem::path depsFile; - - const BuildConfiguration& config; - const Settings& settings; + virtual bool dirty() = 0; + virtual int run() = 0; + virtual int clean() = 0 ; + virtual std::vector<std::string> depends() const = 0; + virtual std::string target() const = 0; }; |