Changeset 13835
- Timestamp:
- 05/23/12 17:03:03 (13 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/StateMachineDim.cc
r12958 r13835 21 21 22 22 #include "EventDim.h" 23 #include "ServiceDim.h" 23 24 24 25 using namespace std; … … 81 82 //! For parameter description see StateMachineImp. 82 83 //! 83 EventImp *StateMachineDim::CreateEvent(int targetstate, const char *name, const char *fmt) 84 { 85 return new EventDim(targetstate, GetName()+"/"+name, fmt, this); 84 EventImp *StateMachineDim::CreateEvent(const char *name, const char *fmt) 85 { 86 return new EventDim(GetName()+"/"+name, fmt, this); 87 } 88 89 EventImp *StateMachineDim::CreateService(const char *name) 90 { 91 return new ServiceDim(name, this); 86 92 } 87 93 … … 150 156 { 151 157 dim_unlock(); 158 } 159 160 void StateMachineDim::infoHandler() 161 { 162 DimInfo *inf = getInfo(); 163 if (!inf) 164 return; 165 166 const EventImp *evt = dynamic_cast<EventImp*>(inf); 167 168 if (HasEvent(evt)) 169 PostEvent(*evt); 152 170 } 153 171 -
trunk/FACT++/src/StateMachineDim.h
r11397 r13835 54 54 #include "StateMachine.h" // StateMachien 55 55 56 class StateMachineDim : public DimCommandHandler, public Dim Log, public DimStart, public StateMachineImp56 class StateMachineDim : public DimCommandHandler, public DimInfoHandler, public DimLog, public DimStart, public StateMachineImp 57 57 { 58 58 private: … … 66 66 void exitHandler(int code); /// Overwritten DimCommand::exitHandler. 67 67 void commandHandler(); /// Overwritten DimCommand::commandHandler 68 void infoHandler(); /// Overwritten DimInfo::infoHandler 68 69 69 EventImp *CreateEvent(int targetstate, const char *name, const char *fmt); 70 EventImp *CreateEvent(const char *name, const char *fmt); 71 EventImp *CreateService(const char *name); 70 72 71 73 protected:
Note:
See TracChangeset
for help on using the changeset viewer.