00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifdef _MSC_VER
00014 #pragma warning( disable : 4786 ) // 'identifier' : identifier was truncated to 'number' characters in the debug information
00015
00016
00017 #pragma warning( disable : 4251 ) // 'identifier' : class 'type' needs to have dll-interface to be used by clients of class 'type2'
00018 #endif
00019 #ifdef __INTEL_COMPILER
00020 #pragma warning( disable : 985 ) // == C4786
00021 #endif
00022
00023 #include "FSM.h"
00024 #include "FiniteStateMachine-config.h"
00025 #include "FSMErrorCodes.h"
00026
00027 namespace FSM {
00028
00029
00030 const string ClassName = "";
00031
00033
00035
00036 CFSMObject::CFSMObject()
00037 {
00038 myStateMachine = NULL;
00039 ClassName = "";
00040 }
00041
00042 CFSMObject::~CFSMObject()
00043 {
00044 myStateMachine = NULL;
00045 ClassName = "";
00046 }
00047
00049
00051
00052 {
00053 myStateMachine = ptr;
00054 }
00055
00056 CFiniteStateMachine *CFSMObject::GetFSM() const
00057 {
00058 return myStateMachine;
00059 }
00060
00061 void CFSMObject::SetClassName(const char *name)
00062 {
00063 ClassName = name;
00064 }
00065
00066 const char* CFSMObject::GetNameOfClass() const
00067 {
00068 return ClassName.c_str();
00069 }
00070
00071 bool CFSMObject::SetParameter(const char* paramName, const char* paramValue)
00072 {
00073 iThrow(WARNING(FSM_UNKNOWN_PARAM), paramName, this->GetNameOfClass());
00074 return false;
00075 }
00076
00078
00080
00081 {
00082 return true;
00083 }
00084
00086 };
00087