#ifndef __TASKMAN_H__ #define __TASKMAN_H__ #ifdef __cplusplus #include #include 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 TaskList; int number; static bool inited; }; #else #error This only works with a C++ compiler #endif #endif