summaryrefslogtreecommitdiff
path: root/include/TaskMan.h
blob: 03797af1ae348090447178835b20f4d054c3d18a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#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 *);
    void MainLoop() throw (GeneralException);
  private:
    vector<Task *> TaskList;
    int number;
    static bool inited;
};

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