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

PunctualAction.h

00001 // 00002 // Copyright 2004 P&P Software GmbH - All Rights Reserved 00003 // 00004 // PunctualAction.h 00005 // 00006 // Version 1.0 00007 // Date 01.10.03 (version 1.0) 00008 // Author A. Pasetti (P&P Software) 00009 // 00010 // Change Record: 00011 00012 #ifndef PunctualActionH 00013 #define PunctualActionH 00014 00015 #include "../GeneralInclude/BasicTypes.h" 00016 #include "../Base/CC_RootObject.h" 00017 00046 class PunctualAction : public CC_RootObject { 00047 00048 private: 00049 bool enabledStatus; 00050 TD_ActionOutcome lastOutcome; 00051 00052 public: 00053 00059 PunctualAction(void); 00060 00092 TD_ActionOutcome execute(void); 00093 00101 void setEnabled(bool isEnabled); 00102 00108 bool isEnabled(void) const; 00109 00121 TD_ActionOutcome getLastOutcome(void) const; 00122 00128 void resetLastOutcome(void); 00129 00130 protected: 00131 00145 virtual TD_ActionOutcome doAction(void) = 0; 00146 00147 }; 00148 00149 #endif
Copyright 2003 P&P Software GmbH - All Rights Reserved