#include <FSMAction.h>
Inheritance diagram for FSM::CFSMActionIncrVariable::
Public Methods | |
virtual void | DeleteThis () |
"Destructor" Simple call delete this. More... | |
void | SetVariable (const char *varName) |
void | SetIncrement (int val) |
const char * | GetVariable () const |
int | GetIncrement () const |
virtual bool | Execute (const char *event, void *a, void *b) |
virtual bool | SetParameter (const char *paramName, const char *paramValue) |
CFiniteStateMachine * | GetFSM () const |
const char * | GetNameOfClass () const |
The class name is set by FiniteStateMachine::Create(). More... | |
Static Public Methods | |
CFSMObject * | Create () |
Protected Methods | |
virtual bool | SaveParameters (CFSMSaver *out) const |
Called by the saver. More... | |
void | SetFSM (CFiniteStateMachine *ptr) |
void | SetClassName (const char *name) |
Private Methods | |
CFSMActionIncrVariable () | |
virtual | ~CFSMActionIncrVariable () |
Private Attributes | |
string | variableName |
int | increment |
Friends | |
class | CFSMState |
class | CFSMTransition |
class | CFiniteStateMachine |
Definition at line 133 of file FSMAction.h.
|
Definition at line 241 of file FSMAction.cpp. |
|
Definition at line 246 of file FSMAction.cpp. |
|
Definition at line 215 of file FSMAction.cpp. |
|
"Destructor" Simple call delete this. This is needed because of the memory management in shared libraries. Provide a static method "Create" in derived classes that returns a new instance of that class and use DeleteThis to destroy it. The constructor and destructor shuld be protected. Reimplemented from FSM::CFSMObject. Definition at line 221 of file FSMAction.cpp. |
|
Reimplemented from FSM::CFSMAction. Definition at line 174 of file FSMAction.cpp. References iRethrow. |
|
Definition at line 56 of file FSMObject.cpp. References FSM::CFSMObject::myStateMachine. Referenced by FSM::CFSMState::AddLeaveAction(), FSM::CFSMState::AddSimpleTransition(), FSM::CFSMConditionTestVariable::CheckCondition(), FSM::CFSMPopTransition::Execute(), FSM::CFSMPushTransition::Execute(), FSM::CFSMSimpleTransition::Execute(), FSM::CFSMTransition::GetFromState(), and FSM::CFSMSimpleTransition::GetToState(). |
|
Definition at line 166 of file FSMAction.cpp. References increment. |
|
The class name is set by FiniteStateMachine::Create(). So do not make Create methods public. Definition at line 66 of file FSMObject.cpp. References FSM::CFSMObject::ClassName. Referenced by FSM::CFSMState::Activate(), FSM::CFSMConditionTestVariable::CheckCondition(), FSM::CFSMState::Deactivate(), FSM::CFSMSimpleTransition::SetParameter(), FSM::CFSMConditionTestVariable::SetParameter(), SetParameter(), and FSM::CFSMActionSetVariable::SetParameter(). |
|
Definition at line 161 of file FSMAction.cpp. References variableName. |
|
Called by the saver. Do not call directly. Overload and call out->SaveParameter() for each parameter. Reimplemented from FSM::CFSMObject. Definition at line 229 of file FSMAction.cpp. References iRethrow. |
|
Definition at line 61 of file FSMObject.cpp. References FSM::CFSMObject::ClassName. |
|
Definition at line 51 of file FSMObject.cpp. |
|
Definition at line 156 of file FSMAction.cpp. References increment. |
|
Reimplemented from FSM::CFSMObject. Definition at line 191 of file FSMAction.cpp. References CRITICAL, FSM::CFSMObject::GetNameOfClass(), increment, iThrow(), and variableName. |
|
Definition at line 151 of file FSMAction.cpp. |
|
Reimplemented from FSM::CFSMObject. Definition at line 138 of file FSMAction.h. |
|
Reimplemented from FSM::CFSMAction. Definition at line 136 of file FSMAction.h. |
|
Reimplemented from FSM::CFSMAction. Definition at line 137 of file FSMAction.h. |
|
Definition at line 165 of file FSMAction.h. Referenced by GetIncrement(), SetIncrement(), and SetParameter(). |
|
Definition at line 164 of file FSMAction.h. Referenced by GetVariable(), and SetParameter(). |