Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

ModeManager.h

00001 // 00002 // Copyright 2004 P&P Software GmbH - All Rights Reserved 00003 // 00004 // ModeManager.h 00005 // 00006 // Version 1.0 00007 // Date 13.04.03 00008 // Author A. Pasetti (P&P Software) 00009 // 00010 // Change Record: 00011 00012 #ifndef ModeManagerH 00013 #define ModeManagerH 00014 00015 #include "../GeneralInclude/BasicTypes.h" 00016 #include "../Base/CC_RootObject.h" 00017 00051 class ModeManager : public CC_RootObject { 00052 00053 private: 00054 bool* enabledStatus; // this is an array 00055 bool transitionsEnabled; 00056 TD_Mode numberOfModes; 00057 TD_Mode currentMode; 00058 TD_Mode defaultMode; 00059 00060 public: 00061 00067 ModeManager(void); 00068 00087 virtual void update(void) = 0; 00088 00109 void setNumberOfModes(TD_Mode numberOfModes); 00110 00121 void setDefaultMode(TD_Mode defaultMode); 00122 00130 void setTransitionEnableStatus(bool enabled); 00131 00142 void setTransitionEnableStatus(TD_Mode toMode, bool enabled); 00143 00149 inline bool isTransitionEnabled(void) const; 00150 00157 inline bool isTransitionEnabled(TD_Mode toMode) const; 00158 00163 inline TD_Mode getCurrentMode(void) const; 00164 00169 inline TD_Mode getNumberOfModes(void) const; 00170 00176 virtual void reset(void); 00177 00183 virtual bool isObjectConfigured(void); 00184 00185 protected: 00186 00209 void setMode(TD_Mode newMode); 00210 00217 virtual void allocateMemory(TD_Mode numberOfModes) = 0; 00218 00219 }; 00220 00221 #include "ModeManager_inl.h" 00222 00223 #endif 00224 00225 00226
Copyright 2003 P&P Software GmbH - All Rights Reserved