/[projects]/smsdaemon/TaskManager.h
ViewVC logotype

Contents of /smsdaemon/TaskManager.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 82 - (show annotations) (download)
Sun Jun 15 20:06:39 2008 UTC (15 years, 11 months ago) by torben
File MIME type: text/plain
File size: 403 byte(s)
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