X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftask.h;h=1f59473fd14f135da7933d18993f4936458e2e1c;hb=3f541fc;hp=03d212bc74af1ac1b7eaaaaabfe8f7ec0e64aa72;hpb=b5ccba555f4985233532041c34e28d71dd58933f;p=builder.git diff --git a/source/task.h b/source/task.h index 03d212b..1f59473 100644 --- a/source/task.h +++ b/source/task.h @@ -1,8 +1,13 @@ #ifndef TASK_H_ #define TASK_H_ +#include #include +/** +Tasks are used to manage other programs and worker threads involved in the +build process. They are run asynchronously. +*/ class Task { public: @@ -20,6 +25,7 @@ protected: public: virtual ~Task() { } + virtual std::string get_command() const = 0; virtual void start() = 0; virtual Status check() = 0; };