summaryrefslogtreecommitdiff
path: root/include/TaskMan.h
blob: dc8c913e453023f8aa14c1f49c4d5131005b0930 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef __TASKMAN_H__
#define __TASKMAN_H__
#ifdef __cplusplus

#include <Task.h>
#include <vector.h>

class TaskMan : public Base {
  public:
      TaskMan() throw (GeneralException);
    int AddTask(Task *);
    int TaskMan::RemoveTask(Task *);
    void Init() throw (GeneralException);
    void MainLoop() throw (GeneralException);
  private:
    vector<Task *> TaskList;
    int number;
    static bool inited;
};

#else
#error This only works with a C++ compiler
#endif
#endif