#ifndef __TASKMAN_H__ #define __TASKMAN_H__ #ifdef __cplusplus #include #include class TaskMan : public Base { public: static int AddTask(Task *); static int RemoveTask(Task *); static void Init() throw (GeneralException); static void MainLoop() throw (GeneralException); private: static vector TaskList; static int number; static bool inited; }; #else #error This only works with a C++ compiler #endif #endif