src/CommandManager.h

00001 #ifndef COMMANDMANAGER_H_
00002 #define COMMANDMANAGER_H_
00003 
00004 #include <iostream>
00005 #include <map>
00006 
00007 #include "SDL.h"
00008 
00009 class Server;                   // Forward declarations.
00010 class CommandScheduler;
00011 
00021 class CommandManager
00022 {
00023 public:
00031         static CommandManager* getInstance();
00032         
00039     static void freeInstance();
00040     
00048     void setServer(Server* myServer);
00049     
00061      void processCommand(std::string &cmd);
00062 
00063 protected:
00067         CommandManager();
00068         
00072         virtual ~CommandManager();
00073         
00074 private:
00075         static CommandManager* pUniqueInstance; 
00076         static SDL_mutex* mxInstance;                   
00077         SDL_mutex* mxServer;                                    
00078         Server* myServer;                                               
00079         CommandScheduler* myScheduler;                  
00080 };
00081 
00082 #endif /*COMMANDMANAGER_H_*/

Generated on Mon Dec 3 04:30:12 2007 for lo-testserver by  doxygen 1.3.9.1