00001 #ifndef CSTATEMANAGER_HPP_INCLUDED
00002 #define CSTATEMANAGER_HPP_INCLUDED
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #include "start_code.hpp"
00023 #include "sState.hpp"
00024 #include "ePurpose.hpp"
00025 #include "SINGLETON.hpp"
00026
00027 #define g_pcStateManager cStateManager::Get()
00029 namespace SPACE
00030 {
00031 namespace Core
00032 {
00041 class DLL_EXPORT cStateManager : public TSingleton<cStateManager>
00042 {
00043 public:
00044 cStateManager();
00045 ~cStateManager();
00046
00053 bool Push(void (*_pFunction)(ePurpose _Purpose));
00054
00060 bool Pop();
00061
00067 bool Clear();
00068
00074 bool Process();
00075
00076 private:
00077 sState* m_pCurrent;
00078 };
00079 }
00080 }
00081
00082 #endif // CSTATEMANAGER_HPP_INCLUDED