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

FSM::CFSMSaverXML Class Reference

Saver, that saves the FSM in XML format. More...

#include <FSMLoader.h>

Inheritance diagram for FSM::CFSMSaverXML::

FSM::CFSMSaver List of all members.

Public Methods

 CFSMSaverXML (const CFiniteStateMachine *fsm)
virtual ~CFSMSaverXML ()
bool Save (const char *filename)
bool Save (FILE *outFile)
virtual bool SaveParameter (const char *name, const char *value)
virtual bool SaveParameter (const char *name, const char *value) const=0
 Service for objects that are about to be saved. More...


Protected Methods

virtual bool SaveState (const CFSMState *state)
virtual bool SaveTransition (const CFSMTransition *trans)
virtual bool SaveAction (const CFSMAction *action, const char *tag="Action")
virtual bool SaveCondition (const CFSMCondition *cond)
bool SaveParameters (const CFSMObject *obj)
 Let the object call SaveParameter for each of its parameter. More...


Private Attributes

const CFiniteStateMachinem_FSM
FILE * m_File

Detailed Description

Saver, that saves the FSM in XML format.

Definition at line 140 of file FSMLoader.h.


Constructor & Destructor Documentation

FSM::CFSMSaverXML::CFSMSaverXML const CFiniteStateMachine   fsm
 

Definition at line 831 of file FSMLoader.cpp.

FSM::CFSMSaverXML::~CFSMSaverXML   [virtual]
 

Definition at line 837 of file FSMLoader.cpp.


Member Function Documentation

bool FSM::CFSMSaverXML::Save FILE *    outFile
 

Definition at line 867 of file FSMLoader.cpp.

References iRethrow, m_File, m_FSM, and SaveState().

bool FSM::CFSMSaverXML::Save const char *    filename
 

Definition at line 841 of file FSMLoader.cpp.

References CRITICAL, iRethrow, and iThrow().

bool FSM::CFSMSaverXML::SaveAction const CFSMAction   action,
const char *    tag = "Action"
[protected, virtual]
 

Definition at line 952 of file FSMLoader.cpp.

References iRethrow, m_File, and FSM::CFSMSaver::SaveParameters().

Referenced by SaveState(), and SaveTransition().

bool FSM::CFSMSaverXML::SaveCondition const CFSMCondition   cond [protected, virtual]
 

Definition at line 960 of file FSMLoader.cpp.

References iRethrow, m_File, and FSM::CFSMSaver::SaveParameters().

Referenced by SaveTransition().

virtual bool FSM::CFSMSaver::SaveParameter const char *    name,
const char *    value
const [pure virtual, inherited]
 

Service for objects that are about to be saved.

The given parameter should be saved by the saver.

bool FSM::CFSMSaverXML::SaveParameter const char *    name,
const char *    value
[virtual]
 

Definition at line 973 of file FSMLoader.cpp.

References m_File.

bool FSM::CFSMSaver::SaveParameters const CFSMObject   obj [protected, inherited]
 

Let the object call SaveParameter for each of its parameter.

Definition at line 823 of file FSMLoader.cpp.

References iRethrow.

Referenced by SaveAction(), SaveCondition(), SaveState(), and SaveTransition().

bool FSM::CFSMSaverXML::SaveState const CFSMState   state [protected, virtual]
 

Definition at line 893 of file FSMLoader.cpp.

References iRethrow, m_File, SaveAction(), FSM::CFSMSaver::SaveParameters(), and SaveTransition().

Referenced by Save().

bool FSM::CFSMSaverXML::SaveTransition const CFSMTransition   trans [protected, virtual]
 

Definition at line 919 of file FSMLoader.cpp.

References iRethrow, m_File, SaveAction(), SaveCondition(), and FSM::CFSMSaver::SaveParameters().

Referenced by SaveState().


Member Data Documentation

FILE* FSM::CFSMSaverXML::m_File [private]
 

Definition at line 161 of file FSMLoader.h.

Referenced by Save(), SaveAction(), SaveCondition(), SaveParameter(), SaveState(), and SaveTransition().

const CFiniteStateMachine* FSM::CFSMSaverXML::m_FSM [private]
 

Reimplemented from FSM::CFSMSaver.

Definition at line 160 of file FSMLoader.h.

Referenced by Save().


The documentation for this class was generated from the following files:
© 2002 by C-LAB
generated by doxygen