]> git.tdb.fi Git - builder.git/blobdiff - source/chainedtask.h
Rearrange sources into subdirectories
[builder.git] / source / chainedtask.h
diff --git a/source/chainedtask.h b/source/chainedtask.h
deleted file mode 100644 (file)
index 30a3b3e..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-#ifndef CHAINEDTASK_H_
-#define CHAINEDTASK_H_
-
-#include <vector>
-#include "task.h"
-
-/**
-Runs multiple tasks as one unit, one after the other.  Execution of the chain
-will stop if any of the component tasks terminates with an error.
-*/
-class ChainedTask: public Task
-{
-private:
-       std::vector<Task *> tasks;
-       unsigned current = 0;
-       Status final_status = RUNNING;
-
-public:
-       ChainedTask(Task *t) { add_task(t); }
-       ~ChainedTask();
-
-       void add_task(Task *);
-
-       std::string get_command() const override;
-       void start() override;
-       Status check() override;
-       Status wait() override;
-private:
-       bool process(Status);
-};
-
-#endif