#include <VisitorSaveState.hxx>
Public Member Functions | |
VisitorSaveState (ComposedNode *root) | |
virtual | ~VisitorSaveState () |
void | openFileDump (const std::string &xmlDump) throw (Exception) |
void | closeFileDump () |
virtual void | visitBloc (Bloc *node) |
virtual void | visitElementaryNode (ElementaryNode *node) |
virtual void | visitForEachLoop (ForEachLoop *node) |
virtual void | visitOptimizerLoop (OptimizerLoop *node) |
virtual void | visitDynParaLoop (DynParaLoop *node) |
virtual void | visitForLoop (ForLoop *node) |
virtual void | visitInlineNode (InlineNode *node) |
virtual void | visitInlineFuncNode (InlineFuncNode *node) |
virtual void | visitLoop (Loop *node) |
virtual void | visitProc (Proc *node) |
virtual void | visitServiceNode (ServiceNode *node) |
virtual void | visitServerNode (ServerNode *node) |
virtual void | visitServiceInlineNode (ServiceInlineNode *node) |
virtual void | visitSwitch (Switch *node) |
virtual void | visitWhileLoop (WhileLoop *node) |
virtual void | visitPresetNode (DataNode *node) |
virtual void | visitOutNode (DataNode *node) |
virtual void | visitStudyInNode (DataNode *node) |
virtual void | visitStudyOutNode (DataNode *node) |
Public Member Functions inherited from YACS::ENGINE::Visitor | |
Visitor (ComposedNode *root) | |
Protected Attributes | |
std::ofstream | _out |
std::map< int, std::string > | _nodeStateName |
Protected Attributes inherited from YACS::ENGINE::Visitor | |
ComposedNode * | _root |
Additional Inherited Members | |
Protected Member Functions inherited from YACS::ENGINE::Visitor | |
std::map< std::string, std::string > | getNodeProperties (Node *node) |
std::map< std::string, TypeCode * > | getTypeCodeMap (Proc *proc) |
std::map< std::string, Container * > | getContainerMap (Proc *proc) |
std::list< TypeCodeObjref * > | getListOfBases (TypeCodeObjref *objref) |
Definition at line 35 of file VisitorSaveState.hxx.
VisitorSaveState::VisitorSaveState | ( | ComposedNode * | root | ) |
Definition at line 47 of file VisitorSaveState.cxx.
References _nodeStateName, YACS::ACTIVATED, YACS::DESACTIVATED, YACS::DISABLED, YACS::DONE, YACS::ERROR, YACS::EXECFAILED, YACS::FAILED, YACS::INTERNALERR, YACS::LOADED, YACS::LOADFAILED, YACS::PAUSE, YACS::READY, YACS::SUSPENDED, YACS::TOACTIVATE, and YACS::TOLOAD.
|
virtual |
void VisitorSaveState::closeFileDump | ( | ) |
Definition at line 87 of file VisitorSaveState.cxx.
References _out.
Referenced by Handler(), main(), YACS::ENGINE::Proc::saveState(), YACS::ENGINE::Executor::saveState(), and YACS::ENGINE::schemaSaveState().
void VisitorSaveState::openFileDump | ( | const std::string & | xmlDump | ) | throw (Exception) |
Definition at line 75 of file VisitorSaveState.cxx.
Referenced by Handler(), main(), YACS::ENGINE::Proc::saveState(), YACS::ENGINE::Executor::saveState(), and YACS::ENGINE::schemaSaveState().
|
virtual |
Implements YACS::ENGINE::Visitor.
Definition at line 145 of file VisitorSaveState.cxx.
References _nodeStateName, _out, YACS::ENGINE::Visitor::_root, DEBTRACE, YACS::ENGINE::ComposedNode::getChildName(), YACS::ENGINE::ComposedNode::getName(), and YACS::ENGINE::Node::getState().
|
virtual |
Implements YACS::ENGINE::Visitor.
Definition at line 201 of file VisitorSaveState.cxx.
|
virtual |
Implements YACS::ENGINE::Visitor.
Definition at line 94 of file VisitorSaveState.cxx.
References _nodeStateName, _out, YACS::ENGINE::Visitor::_root, DEBTRACE, YACS::ENGINE::ComposedNode::getChildName(), YACS::ENGINE::ElementaryNode::getSetOfInputPort(), YACS::ENGINE::ElementaryNode::getSetOfOutputPort(), YACS::ENGINE::ElementaryNode::getState(), and YACS::Exception::what().
Referenced by visitInlineFuncNode(), visitInlineNode(), visitOutNode(), visitPresetNode(), visitServerNode(), visitServiceInlineNode(), visitServiceNode(), visitStudyInNode(), and visitStudyOutNode().
|
virtual |
Implements YACS::ENGINE::Visitor.
Reimplemented in YACS::ENGINE::VisitorSalomeSaveState.
Definition at line 173 of file VisitorSaveState.cxx.
References _nodeStateName, _out, YACS::ENGINE::Visitor::_root, DEBTRACE, YACS::ENGINE::ComposedNode::getChildName(), YACS::ENGINE::ComposedNode::getName(), and YACS::ENGINE::Node::getState().
|
virtual |
Implements YACS::ENGINE::Visitor.
Definition at line 221 of file VisitorSaveState.cxx.
References _nodeStateName, _out, YACS::ENGINE::Visitor::_root, DEBTRACE, YACS::ENGINE::ForLoop::edGetNbOfTimesInputPort(), YACS::ENGINE::InputPort::get(), YACS::ENGINE::ComposedNode::getChildName(), YACS::ENGINE::Any::getIntValue(), YACS::ENGINE::ComposedNode::getName(), YACS::ENGINE::Loop::getNbOfTurns(), YACS::ENGINE::Node::getState(), and YACS::ENGINE::InputPort::isEmpty().
|
virtual |
Implements YACS::ENGINE::Visitor.
Definition at line 290 of file VisitorSaveState.cxx.
References visitElementaryNode().
|
virtual |
Implements YACS::ENGINE::Visitor.
Definition at line 285 of file VisitorSaveState.cxx.
References visitElementaryNode().
|
virtual |
Implements YACS::ENGINE::Visitor.
Definition at line 206 of file VisitorSaveState.cxx.
References _nodeStateName, _out, YACS::ENGINE::Visitor::_root, DEBTRACE, YACS::ENGINE::ComposedNode::getChildName(), YACS::ENGINE::ComposedNode::getName(), YACS::ENGINE::Loop::getNbOfTurns(), and YACS::ENGINE::Node::getState().
|
virtual |
Implements YACS::ENGINE::Visitor.
Definition at line 187 of file VisitorSaveState.cxx.
References _nodeStateName, _out, YACS::ENGINE::Visitor::_root, DEBTRACE, YACS::ENGINE::ComposedNode::getChildName(), YACS::ENGINE::ComposedNode::getName(), and YACS::ENGINE::Node::getState().
|
virtual |
Implements YACS::ENGINE::Visitor.
Definition at line 315 of file VisitorSaveState.cxx.
References visitElementaryNode().
|
virtual |
Implements YACS::ENGINE::Visitor.
Definition at line 310 of file VisitorSaveState.cxx.
References visitElementaryNode().
|
virtual |
Implements YACS::ENGINE::Visitor.
Definition at line 159 of file VisitorSaveState.cxx.
References _nodeStateName, _out, YACS::ENGINE::Visitor::_root, DEBTRACE, YACS::ENGINE::ComposedNode::getChildName(), YACS::ENGINE::ComposedNode::getName(), and YACS::ENGINE::Node::getState().
|
virtual |
Implements YACS::ENGINE::Visitor.
Definition at line 300 of file VisitorSaveState.cxx.
References visitElementaryNode().
|
virtual |
Implements YACS::ENGINE::Visitor.
Definition at line 305 of file VisitorSaveState.cxx.
References visitElementaryNode().
|
virtual |
Implements YACS::ENGINE::Visitor.
Definition at line 295 of file VisitorSaveState.cxx.
References visitElementaryNode().
|
virtual |
Implements YACS::ENGINE::Visitor.
Definition at line 320 of file VisitorSaveState.cxx.
References visitElementaryNode().
|
virtual |
Implements YACS::ENGINE::Visitor.
Definition at line 325 of file VisitorSaveState.cxx.
References visitElementaryNode().
|
virtual |
Implements YACS::ENGINE::Visitor.
Definition at line 265 of file VisitorSaveState.cxx.
References _nodeStateName, _out, YACS::ENGINE::Visitor::_root, DEBTRACE, YACS::ENGINE::Switch::edGetConditionPort(), YACS::ENGINE::InputPort::get(), YACS::ENGINE::ComposedNode::getChildName(), YACS::ENGINE::Any::getIntValue(), YACS::ENGINE::ComposedNode::getName(), YACS::ENGINE::Node::getState(), and YACS::ENGINE::InputPort::isEmpty().
|
virtual |
Implements YACS::ENGINE::Visitor.
Definition at line 242 of file VisitorSaveState.cxx.
References _nodeStateName, _out, YACS::ENGINE::Visitor::_root, DEBTRACE, YACS::ENGINE::WhileLoop::edGetConditionPort(), YACS::ENGINE::ComposedNode::getChildName(), YACS::ENGINE::ComposedNode::getName(), YACS::ENGINE::Loop::getNbOfTurns(), YACS::ENGINE::Node::getState(), and YACS::ENGINE::InputPort::isEmpty().
|
protected |
Definition at line 64 of file VisitorSaveState.hxx.
Referenced by visitBloc(), visitElementaryNode(), YACS::ENGINE::VisitorSalomeSaveState::visitForEachLoop(), visitForEachLoop(), visitForLoop(), visitLoop(), visitOptimizerLoop(), VisitorSaveState(), visitProc(), visitSwitch(), and visitWhileLoop().
|
protected |
Definition at line 63 of file VisitorSaveState.hxx.
Referenced by closeFileDump(), visitBloc(), visitElementaryNode(), YACS::ENGINE::VisitorSalomeSaveState::visitForEachLoop(), visitForEachLoop(), visitForLoop(), visitLoop(), visitOptimizerLoop(), visitProc(), visitSwitch(), visitWhileLoop(), and ~VisitorSaveState().