00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef CPROCESSMANAGER_HPP_INCLUDED
00020 #define CPROCESSMANAGER_HPP_INCLUDED
00021
00022 #include "start_code.hpp"
00023 #include "ePurpose.hpp"
00024 #include "sProcess.hpp"
00025 #include "SINGLETON.hpp"
00026
00027
00028 #define g_pcProcessManager cProcessManager::Get()
00030 namespace SPACE
00031 {
00032 namespace Core
00033 {
00041 class DLL_EXPORT cProcessManager : public TSingleton<cProcessManager>
00042 {
00043 public:
00044 cProcessManager();
00045 ~cProcessManager();
00046
00053 unsigned int Push(void (*_pFunction)(ePurpose _Purpose));
00054
00061 bool Pop(unsigned int _id);
00062
00068 bool Clear();
00069
00075 bool Process();
00076
00077 private:
00078 sProcess* m_pFirst;
00079 sProcess* m_pLast;
00080 };
00081 }
00082 }
00083
00084 #endif // CPROCESSMANAGER_HPP_INCLUDED