diff options
Diffstat (limited to 'project2/task.h')
-rw-r--r-- | project2/task.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/project2/task.h b/project2/task.h new file mode 100644 index 0000000..00fce4b --- /dev/null +++ b/project2/task.h @@ -0,0 +1,31 @@ +#ifndef TASK_H +#define TASK_H + +#include <libxml++/nodes/element.h> +#include <boost/shared_ptr.hpp> +#include <map> +#include "sourceObject.h" +#include "xmlObjectLoader.h" +#include "view.h" + +class ApplicationEngine; +class _Task; +typedef boost::shared_ptr<_Task> Task; +typedef std::map<std::string, Task> Tasks; +typedef std::map<unsigned int, Task> OrderedTasks; + +class _Task : public _Project2SourceObject { + public: + _Task(const xmlpp::Element * p); + virtual ~_Task(); + virtual void execute(const ApplicationEngine *, const _View * parent = NULL) const = 0; + const unsigned int order; + + static void AddLoaders(Loaders & l, OrderedTasks & vs); + private: + static unsigned int loadOrder; +}; + +#endif + + |