specialized parser to load SALOME execution saved states. More...
#include <LoadState.hxx>
Public Member Functions | |
virtual void | init (const xmlChar **p, xmlParserBase *father=0) |
Public Member Functions inherited from xmlParserBase | |
void | setAttribute (std::string key, std::string value) |
std::string | getAttribute (std::string key) |
virtual void | addData (std::string value) |
Static Public Member Functions | |
static void | setProc (Proc *p) |
static void | setRuntime (Runtime *runtime) |
Static Public Member Functions inherited from xmlParserBase | |
static void XMLCALL | start_document (void *userData) |
static void XMLCALL | end_document (void *userData) |
static void XMLCALL | start_element (void *userData, const xmlChar *name, const xmlChar **p) |
static void XMLCALL | end_element (void *userData, const xmlChar *name) |
static void XMLCALL | characters (void *userData, const xmlChar *ch, int len) |
static void XMLCALL | comment (void *userData, const xmlChar *value) |
static void XMLCALL | warning (void *userData, const char *fmt,...) |
static void XMLCALL | error (void *userData, const char *fmt,...) |
static void XMLCALL | fatal_error (void *userData, const char *fmt,...) |
static void XMLCALL | cdata_block (void *userData, const xmlChar *value, int len) |
static void | cleanGarbage () |
static int | getGarbageSize () |
static void | XML_SetUserData (_xmlParserCtxt *ctxt, xmlParserBase *parser) |
Static Public Attributes | |
static XMLReadState | _state |
static std::string | _what |
Static Public Attributes inherited from xmlParserBase | |
static _xmlParserCtxt * | _xmlParser |
static std::stack < xmlParserBase * > | _stackParser |
Protected Member Functions | |
virtual void | onStart (const XML_Char *elem, const xmlChar **p) |
virtual void | onEnd (const XML_Char *name) |
virtual void | charData (std::string data) |
Protected Member Functions inherited from xmlParserBase | |
void | getAttributes (const xmlChar **p) |
virtual void | onStart (const XML_Char *elem, const xmlChar **p) |
virtual void | onEnd (const XML_Char *name) |
virtual void | incrCount (const XML_Char *elem) |
virtual void | end () |
virtual void | stopParse (std::string what) |
Static Protected Attributes | |
static std::stack< XMLReadState > | _stackState |
static Proc * | _p |
static Runtime * | _runtime |
static std::map< std::string, YACS::StatesForNode > | _nodeStateValue |
static std::map< std::string, YACS::StatesForNode > | _nodeStates |
Static Protected Attributes inherited from xmlParserBase | |
static std::list< xmlParserBase * > | _garbage |
Additional Inherited Members | |
Public Attributes inherited from xmlParserBase | |
std::map< std::string, int > | counts |
Protected Attributes inherited from xmlParserBase | |
std::map< std::string, std::string > | _mapAttrib |
std::string | _data |
xmlParserBase * | _father |
specialized parser to load SALOME execution saved states.
this base class must be derived to build specific parsers for each tag defined in the xml file
Definition at line 80 of file LoadState.hxx.
|
protectedvirtual |
to be specialized following the kind of xml tag
Reimplemented from xmlParserBase.
Reimplemented in YACS::ENGINE::sampleParser, YACS::ENGINE::loopPortParser, YACS::ENGINE::simpleTypeParser, and YACS::ENGINE::attrParser.
Definition at line 119 of file LoadState.cxx.
|
virtual |
all parsers must know their father parser (father tag), in order to set values or attributes in father.
Reimplemented from xmlParserBase.
Reimplemented in YACS::ENGINE::sampleParser, outputParser, YACS::ENGINE::loopPortParser, YACS::ENGINE::simpleTypeParser, YACS::ENGINE::dataParser, YACS::ENGINE::arrayParser, YACS::ENGINE::valueParser, YACS::ENGINE::portParser, YACS::ENGINE::attrParser, YACS::ENGINE::nodeParser, and YACS::ENGINE::graphParser.
Definition at line 65 of file LoadState.cxx.
References YACS::ACTIVATED, DEBTRACE, 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, YACS::TOLOAD, and YACS::ENGINE::XMLNOCONTEXT.
Referenced by onStart(), YACS::ENGINE::graphParser::onStart(), YACS::ENGINE::nodeParser::onStart(), YACS::ENGINE::portParser::onStart(), YACS::ENGINE::valueParser::onStart(), YACS::ENGINE::arrayParser::onStart(), YACS::ENGINE::dataParser::onStart(), YACS::ENGINE::loopPortParser::onStart(), outputParser::onStart(), and YACS::ENGINE::sampleParser::onStart().
|
protectedvirtual |
Reimplemented in YACS::ENGINE::sampleParser, YACS::ENGINE::loopPortParser, YACS::ENGINE::simpleTypeParser, YACS::ENGINE::dataParser, YACS::ENGINE::arrayParser, YACS::ENGINE::valueParser, YACS::ENGINE::portParser, YACS::ENGINE::attrParser, YACS::ENGINE::nodeParser, and YACS::ENGINE::graphParser.
Definition at line 111 of file LoadState.cxx.
Referenced by YACS::ENGINE::graphParser::onEnd(), YACS::ENGINE::nodeParser::onEnd(), YACS::ENGINE::attrParser::onEnd(), YACS::ENGINE::portParser::onEnd(), YACS::ENGINE::valueParser::onEnd(), YACS::ENGINE::arrayParser::onEnd(), YACS::ENGINE::dataParser::onEnd(), YACS::ENGINE::simpleTypeParser::onEnd(), YACS::ENGINE::loopPortParser::onEnd(), YACS::ENGINE::sampleParser::onEnd(), and outputParser::onEnd().
|
protectedvirtual |
Reimplemented in YACS::ENGINE::sampleParser, YACS::ENGINE::loopPortParser, YACS::ENGINE::simpleTypeParser, YACS::ENGINE::dataParser, YACS::ENGINE::arrayParser, YACS::ENGINE::valueParser, YACS::ENGINE::portParser, YACS::ENGINE::attrParser, YACS::ENGINE::nodeParser, and YACS::ENGINE::graphParser.
Definition at line 90 of file LoadState.cxx.
References DEBTRACE, init(), and YACS::ENGINE::XMLFATALERROR.
|
static |
Definition at line 55 of file LoadState.cxx.
References p.
Referenced by YACS::ENGINE::stateLoader::parse().
|
static |
Definition at line 60 of file LoadState.cxx.
Referenced by YACS::ENGINE::stateLoader::parse().
|
staticprotected |
Definition at line 102 of file LoadState.hxx.
|
staticprotected |
Definition at line 101 of file LoadState.hxx.
|
staticprotected |
Definition at line 99 of file LoadState.hxx.
|
staticprotected |
Definition at line 100 of file LoadState.hxx.
|
staticprotected |
Definition at line 98 of file LoadState.hxx.
Referenced by YACS::ENGINE::sampleParser::init().
|
static |
Definition at line 83 of file LoadState.hxx.
Referenced by YACS::ENGINE::sampleParser::init(), YACS::ENGINE::sampleParser::onEnd(), YACS::ENGINE::sampleParser::onStart(), and YACS::ENGINE::stateLoader::parse().
|
static |
Definition at line 84 of file LoadState.hxx.
Referenced by YACS::ENGINE::sampleParser::onEnd(), YACS::ENGINE::sampleParser::onStart(), and YACS::ENGINE::stateLoader::parse().