From 6e3070181fadbe47511b52c12af5e1409a9a70b0 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 11 Jun 2021 21:22:21 +0200 Subject: Refactor at 4'o clock --- task.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 task.h (limited to 'task.h') diff --git a/task.h b/task.h new file mode 100644 index 0000000..d788645 --- /dev/null +++ b/task.h @@ -0,0 +1,32 @@ +// -*- c++ -*- +#pragma once + +#include +#include +#include +#include + +struct BuildConfiguration; +struct Settings; + +class Task +{ +public: + Task(const BuildConfiguration& config, + const Settings& settings, + const std::string& source); + + void start(); + + int wait(); + + int clean(); + + std::vector depends(); + + std::filesystem::path sourceFile; + std::filesystem::path targetFile; + std::filesystem::path depsFile; + + std::future future; +}; -- cgit v1.2.3