SourceForge Project Site
Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

FSMObject.cpp

Go to the documentation of this file.
00001 // $Log: FSMObject.cpp,v $
00002 // Revision 1.2  2002/08/20 14:48:41  vofka
00003 // FiniteStateMachine-config.h removed from installing. Loading exported to the loader class. Saver introduced. Error codes exported to FSMErrorCodes.
00004 //
00005 // Revision 1.1  2002/07/22 17:20:59  vofka
00006 // SimpleTransition, PushTransition, PopTransition added, not implemented yet
00007 //
00008 // Revision 1.8  2002/06/20 12:22:10  bobka
00009 // LGPL license
00010 //
00011 //
00012 
00013 #ifdef _MSC_VER
00014         #pragma warning( disable : 4786 ) // 'identifier' : identifier was truncated to 'number' characters in the debug information
00015 //      #pragma warning( disable : 4503 ) // 'identifier' : decorated name length exceeded, name was truncated
00016 //      #pragma warning( disable : 4250 ) // 'class1' : inherits 'class2::member' via dominance
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 // Initialize the Name of the Class
00030 const string ClassName = "";
00031 
00033 // Construction/Destruction
00035 
00036 CFSMObject::CFSMObject()
00037 {
00038         myStateMachine = NULL;
00039         ClassName = "";
00040 }
00041 
00042 CFSMObject::~CFSMObject()
00043 {
00044         myStateMachine = NULL;
00045         ClassName = "";
00046 }
00047 
00049 // Set/Get Methods
00051 void CFSMObject::SetFSM(CFiniteStateMachine *ptr)
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 //              Input/Output
00080 bool CFSMObject::SaveParameters(CFSMSaver* out) const
00081 {
00082         return true;
00083 }
00084 
00086 }; // namespace FSM
00087 

© 2002 by C-LAB
generated by doxygen