Parent Directory | Revision Log
Added task infrastructure.
1 | #ifndef __MANAGER_H__ |
2 | #define __MANAGER_H__ |
3 | |
4 | #include <string> |
5 | #include <map> |
6 | #include <vector> |
7 | |
8 | #include "Task.h" |
9 | |
10 | class TaskManager |
11 | { |
12 | public: |
13 | TaskManager(); |
14 | ~TaskManager(); |
15 | |
16 | void ExecuteTasks(); |
17 | |
18 | void LoadTasks(); |
19 | |
20 | Task* GetTask(const std::string& taskname); |
21 | |
22 | std::vector<Task*> GetTaskList(); |
23 | |
24 | private: |
25 | std::map<std::string, Task*> _tasks; |
26 | |
27 | int _lastExecuted; |
28 | }; |
29 | |
30 | #endif //__MANAGER_H__ |
ViewVC Help | |
Powered by ViewVC 1.1.20 |