#include <parserBase.hxx>
Public Member Functions | |
parser () | |
virtual | ~parser () |
virtual void | SetUserDataAndPush (parser *pp) |
virtual void | onStart (const XML_Char *el, const XML_Char **attr) |
virtual void | onEnd (const XML_Char *el, parser *child) |
virtual void | charData (const XML_Char *s, int len) |
virtual void | endParser () |
virtual void | init () |
virtual void | incrCount (const XML_Char *elem) |
virtual void | checkOrder (std::string &el) |
virtual void | maxcount (std::string name, int max, std::string &el) |
virtual void | mincount (std::string name, int min) |
virtual void | maxchoice (std::string *names, int max, std::string &el) |
virtual void | minchoice (std::string *names, int min) |
virtual void | pre () |
virtual void | required (const std::string &name, const XML_Char **attr) |
virtual void | buildAttr (const XML_Char **attr) |
std::stack< parser * > & | getStack () |
template<class T > | |
T | post () |
void | logError (const std::string &reason) |
Static Public Member Functions | |
static void XMLCALL | start_document (void *data) |
static void XMLCALL | end_document (void *data) |
static void XMLCALL | start_element (void *data, const xmlChar *name, const xmlChar **p) |
static void XMLCALL | end_element (void *data, const xmlChar *name) |
static void XMLCALL | characters (void *data, const xmlChar *ch, int len) |
static void XMLCALL | comment (void *data, const xmlChar *value) |
static void XMLCALL | cdata_block (void *data, const xmlChar *value, int len) |
static void XMLCALL | warning (void *data, const char *fmt,...) |
static void XMLCALL | error (void *data, const char *fmt,...) |
static void XMLCALL | fatal_error (void *data, const char *fmt,...) |
static void | XML_SetUserData (_xmlParserCtxt *ctxt, parser *par) |
Public Attributes | |
std::string | _file |
std::string | _content |
std::map< std::string, int > * | _counts |
std::map< std::string, int > | _orders |
int | _orderState |
int | _level |
std::stack< std::map < std::string, int > * > | _stackCount |
std::stack< int > | _stackOrder |
std::map< std::string, parser * > * | _defaultParsersMap |
Static Public Attributes | |
static parser | main_parser |
static std::stack< parser * > | _stackParser |
Definition at line 39 of file parserBase.hxx.
|
inline |
Definition at line 44 of file parserBase.hxx.
|
virtual |
|
virtual |
Reimplemented in YACS::optimizerlooptypeParser< T >, YACS::foreachlooptypeParser< T >, YACS::pseudocomposednodetypeParser< T >, YACS::forlooptypeParser< T >, YACS::structtypeParser, YACS::presettypeParser< T >, YACS::HMI::presentationtype_parser, YACS::membertypeParser, YACS::outnodetypeParser< T >, YACS::linktypeParser< T >, YACS::objtypeParser, YACS::loadtypeParser, YACS::switchtypeParser, YACS::bloctypeParser< T >, YACS::defaultcasetypeParser, YACS::functypeParser, YACS::seqtypeParser, YACS::nodetypeParser< T >, YACS::containertypeParser, YACS::inlinetypeParser< T >, YACS::presetdatatypeParser, YACS::outputdatatypeParser, YACS::casetypeParser, YACS::inporttypeParser< T >, YACS::proctypeParser< T >, YACS::looptypeParser< T >, YACS::componentinstancetypeParser, YACS::propertytypeParser, YACS::typetypeParser, and YACS::machinetypeParser.
Definition at line 195 of file parserBase.cxx.
References DEBTRACE, and CORBAEngineTest::i.
Referenced by YACS::roottypeParser::onStart(), YACS::remotetypeParser< T >::onStart(), YACS::controltypeParser< T >::onStart(), YACS::servertypeParser< T >::onStart(), YACS::codetypeParser::onStart(), YACS::sinlinetypeParser< T >::onStart(), YACS::presetdatatypeParser::onStart(), YACS::outputdatatypeParser::onStart(), YACS::componentinstancetypeParser::onStart(), YACS::proctypeParser< T >::onStart(), YACS::looptypeParser< T >::onStart(), onStart(), YACS::inporttypeParser< T >::onStart(), YACS::valuetypeParser::onStart(), YACS::casetypeParser::onStart(), YACS::inlinetypeParser< T >::onStart(), YACS::servicetypeParser< T >::onStart(), YACS::nodetypeParser< T >::onStart(), YACS::containertypeParser::onStart(), YACS::seqtypeParser::onStart(), YACS::datatypeParser::onStart(), YACS::bloctypeParser< T >::onStart(), YACS::linktypeParser< T >::onStart(), YACS::switchtypeParser::onStart(), YACS::objtypeParser::onStart(), YACS::memberdatatypeParser::onStart(), YACS::outnodetypeParser< T >::onStart(), YACS::HMI::presentationtype_parser::onStart(), YACS::structdatatypeParser::onStart(), YACS::presettypeParser< T >::onStart(), YACS::arraytypeParser::onStart(), YACS::structtypeParser::onStart(), YACS::parametertypeParser::onStart(), and YACS::dynparalooptypeParser< T >::onStart().
|
static |
Definition at line 275 of file parserBase.cxx.
References charData(), and DEBTRACE.
Referenced by YACS::YACSLoader::load().
|
static |
Definition at line 259 of file parserBase.cxx.
References charData(), and DEBTRACE.
Referenced by YACS::YACSLoader::load().
|
virtual |
Definition at line 67 of file parserBase.cxx.
References _content.
Referenced by cdata_block(), and characters().
|
virtual |
|
static |
Definition at line 268 of file parserBase.cxx.
References DEBTRACE.
Referenced by YACS::YACSLoader::load().
|
static |
Definition at line 231 of file parserBase.cxx.
References DEBTRACE.
Referenced by YACS::YACSLoader::load().
|
static |
Definition at line 247 of file parserBase.cxx.
References _stackParser, DEBTRACE, endParser(), onEnd(), saxContext, and XML_SetUserData().
Referenced by YACS::YACSLoader::load().
|
virtual |
Definition at line 72 of file parserBase.cxx.
References _counts, _level, _orderState, _stackCount, _stackOrder, and DEBTRACE.
Referenced by end_element().
|
static |
Definition at line 303 of file parserBase.cxx.
References DEBTRACE.
Referenced by YACS::YACSLoader::load().
|
static |
Definition at line 322 of file parserBase.cxx.
References DEBTRACE.
Referenced by YACS::YACSLoader::load().
std::stack< parser * > & YACS::parser::getStack | ( | ) |
Definition at line 50 of file parserBase.cxx.
References _stackParser.
|
virtual |
|
virtual |
Definition at line 86 of file parserBase.cxx.
References _counts, _level, _orderState, _stackCount, _stackOrder, and DEBTRACE.
Referenced by YACS::YACSLoader::load(), YACS::roottypeParser::onStart(), YACS::remotetypeParser< T >::onStart(), YACS::controltypeParser< T >::onStart(), YACS::servertypeParser< T >::onStart(), YACS::codetypeParser::onStart(), YACS::sinlinetypeParser< T >::onStart(), YACS::presetdatatypeParser::onStart(), YACS::outputdatatypeParser::onStart(), YACS::componentinstancetypeParser::onStart(), YACS::proctypeParser< T >::onStart(), YACS::looptypeParser< T >::onStart(), onStart(), YACS::inporttypeParser< T >::onStart(), YACS::valuetypeParser::onStart(), YACS::casetypeParser::onStart(), YACS::inlinetypeParser< T >::onStart(), YACS::servicetypeParser< T >::onStart(), YACS::nodetypeParser< T >::onStart(), YACS::containertypeParser::onStart(), YACS::seqtypeParser::onStart(), YACS::datatypeParser::onStart(), YACS::bloctypeParser< T >::onStart(), YACS::linktypeParser< T >::onStart(), YACS::switchtypeParser::onStart(), YACS::objtypeParser::onStart(), YACS::memberdatatypeParser::onStart(), YACS::outnodetypeParser< T >::onStart(), YACS::HMI::presentationtype_parser::onStart(), YACS::structdatatypeParser::onStart(), YACS::presettypeParser< T >::onStart(), YACS::arraytypeParser::onStart(), YACS::structtypeParser::onStart(), YACS::parametertypeParser::onStart(), and YACS::dynparalooptypeParser< T >::onStart().
void YACS::parser::logError | ( | const std::string & | reason | ) |
Definition at line 214 of file parserBase.cxx.
References _file, DEBTRACE, YACS::ENGINE::Logger::error(), YACS::ENGINE::Proc::getLogger(), main_parser, and saxContext.
Referenced by YACS::bloctypeParser< T >::control(), YACS::bloctypeParser< T >::datalink(), YACS::servertypeParser< T >::method(), YACS::servicetypeParser< T >::method(), YACS::bloctypeParser< T >::parameter(), and YACS::bloctypeParser< T >::stream().
|
virtual |
Definition at line 145 of file parserBase.cxx.
References CORBAEngineTest::i.
Referenced by YACS::valuetypeParser::onStart(), and YACS::casetypeParser::onStart().
|
virtual |
Definition at line 122 of file parserBase.cxx.
References _counts.
Referenced by YACS::memberdatatypeParser::onEnd(), YACS::controltypeParser< T >::onStart(), YACS::presetdatatypeParser::onStart(), YACS::componentinstancetypeParser::onStart(), YACS::valuetypeParser::onStart(), YACS::casetypeParser::onStart(), YACS::linktypeParser< T >::onStart(), YACS::switchtypeParser::onStart(), YACS::arraytypeParser::onStart(), YACS::parametertypeParser::onStart(), and YACS::dynparalooptypeParser< T >::onStart().
|
virtual |
Definition at line 162 of file parserBase.cxx.
References CORBAEngineTest::i.
Referenced by YACS::valuetypeParser::post(), and YACS::casetypeParser::post().
|
virtual |
Definition at line 134 of file parserBase.cxx.
References _counts.
Referenced by YACS::componentinstancetypeParser::post(), YACS::controltypeParser< T >::post(), YACS::presetdatatypeParser::post(), YACS::memberdatatypeParser::post(), YACS::linktypeParser< T >::post(), YACS::arraytypeParser::post(), YACS::parametertypeParser::post(), YACS::servertypeParser< T >::post(), and YACS::servicetypeParser< T >::post().
Reimplemented in YACS::dynparalooptypeParser< T >, YACS::parametertypeParser, YACS::structtypeParser, YACS::arraytypeParser, YACS::presettypeParser< T >, YACS::structdatatypeParser, YACS::outnodetypeParser< T >, YACS::memberdatatypeParser, YACS::linktypeParser< T >, YACS::objtypeParser, YACS::switchtypeParser, YACS::bloctypeParser< T >, YACS::datatypeParser, YACS::seqtypeParser, YACS::containertypeParser, YACS::nodetypeParser< T >, YACS::presetdatatypeParser, YACS::outputdatatypeParser, YACS::servicetypeParser< T >, YACS::inlinetypeParser< T >, YACS::casetypeParser, YACS::valuetypeParser, YACS::inporttypeParser< T >, YACS::looptypeParser< T >, YACS::proctypeParser< T >, YACS::componentinstancetypeParser, YACS::controltypeParser< T >, YACS::codetypeParser, YACS::sinlinetypeParser< T >, YACS::servertypeParser< T >, YACS::remotetypeParser< T >, and YACS::roottypeParser.
Definition at line 62 of file parserBase.cxx.
References DEBTRACE.
Referenced by end_element().
Reimplemented in YACS::dynparalooptypeParser< T >, YACS::parametertypeParser, YACS::structtypeParser, YACS::arraytypeParser, YACS::presettypeParser< T >, YACS::structdatatypeParser, YACS::HMI::presentationtype_parser, YACS::outnodetypeParser< T >, YACS::memberdatatypeParser, YACS::objtypeParser, YACS::switchtypeParser, YACS::linktypeParser< T >, YACS::bloctypeParser< T >, YACS::datatypeParser, YACS::seqtypeParser, YACS::containertypeParser, YACS::nodetypeParser< T >, YACS::servicetypeParser< T >, YACS::inlinetypeParser< T >, YACS::casetypeParser, YACS::valuetypeParser, YACS::inporttypeParser< T >, YACS::looptypeParser< T >, YACS::proctypeParser< T >, YACS::componentinstancetypeParser, YACS::outputdatatypeParser, YACS::presetdatatypeParser, YACS::sinlinetypeParser< T >, YACS::codetypeParser, YACS::servertypeParser< T >, YACS::controltypeParser< T >, YACS::remotetypeParser< T >, and YACS::roottypeParser.
Definition at line 205 of file parserBase.cxx.
References buildAttr(), DEBTRACE, init(), main_parser, pre(), and SetUserDataAndPush().
Referenced by start_element().
|
inline |
Definition at line 92 of file parserBase.hxx.
Referenced by YACS::roottypeParser::onEnd(), and YACS::dynparalooptypeParser< T >::onEnd().
|
inlinevirtual |
Reimplemented in YACS::optimizerlooptypeParser< T >, YACS::foreachlooptypeParser< T >, YACS::parametertypeParser, YACS::HMI::presentationtype_parser, YACS::structtypeParser, YACS::arraytypeParser, YACS::presettypeParser< T >, YACS::structdatatypeParser, YACS::outnodetypeParser< T >, YACS::memberdatatypeParser, YACS::objtypeParser, YACS::presetdatatypeParser, YACS::loadtypeParser, YACS::switchtypeParser, YACS::outputdatatypeParser, YACS::nodetypeParser< T >, YACS::defaultcasetypeParser, YACS::datatypeParser, YACS::inlinetypeParser< T >, YACS::containertypeParser, YACS::proctypeParser< T >, YACS::casetypeParser, YACS::controltypeParser< T >, YACS::inporttypeParser< T >, YACS::valuetypeParser, YACS::looptypeParser< T >, YACS::codetypeParser, YACS::componentinstancetypeParser, YACS::typetypeParser, and YACS::machinetypeParser.
Definition at line 61 of file parserBase.hxx.
Referenced by YACS::roottypeParser::onStart(), YACS::remotetypeParser< T >::onStart(), YACS::controltypeParser< T >::onStart(), YACS::servertypeParser< T >::onStart(), YACS::codetypeParser::onStart(), YACS::sinlinetypeParser< T >::onStart(), YACS::presetdatatypeParser::onStart(), YACS::outputdatatypeParser::onStart(), YACS::componentinstancetypeParser::onStart(), YACS::proctypeParser< T >::onStart(), YACS::looptypeParser< T >::onStart(), onStart(), YACS::inporttypeParser< T >::onStart(), YACS::valuetypeParser::onStart(), YACS::casetypeParser::onStart(), YACS::inlinetypeParser< T >::onStart(), YACS::servicetypeParser< T >::onStart(), YACS::nodetypeParser< T >::onStart(), YACS::containertypeParser::onStart(), YACS::seqtypeParser::onStart(), YACS::datatypeParser::onStart(), YACS::bloctypeParser< T >::onStart(), YACS::linktypeParser< T >::onStart(), YACS::switchtypeParser::onStart(), YACS::objtypeParser::onStart(), YACS::memberdatatypeParser::onStart(), YACS::outnodetypeParser< T >::onStart(), YACS::HMI::presentationtype_parser::onStart(), YACS::structdatatypeParser::onStart(), YACS::presettypeParser< T >::onStart(), YACS::arraytypeParser::onStart(), YACS::structtypeParser::onStart(), YACS::parametertypeParser::onStart(), and YACS::dynparalooptypeParser< T >::onStart().
|
virtual |
Definition at line 186 of file parserBase.cxx.
References CORBAEngineTest::i.
Referenced by YACS::machinetypeParser::buildAttr(), YACS::typetypeParser::buildAttr(), YACS::propertytypeParser::buildAttr(), YACS::componentinstancetypeParser::buildAttr(), YACS::casetypeParser::buildAttr(), YACS::outputdatatypeParser::buildAttr(), YACS::presetdatatypeParser::buildAttr(), YACS::inlinetypeParser< T >::buildAttr(), YACS::containertypeParser::buildAttr(), YACS::nodetypeParser< T >::buildAttr(), YACS::seqtypeParser::buildAttr(), YACS::functypeParser::buildAttr(), YACS::bloctypeParser< T >::buildAttr(), YACS::switchtypeParser::buildAttr(), YACS::loadtypeParser::buildAttr(), YACS::objtypeParser::buildAttr(), YACS::membertypeParser::buildAttr(), YACS::HMI::presentationtype_parser::buildAttr(), YACS::structtypeParser::buildAttr(), YACS::foreachlooptypeParser< T >::buildAttr(), and YACS::optimizerlooptypeParser< T >::buildAttr().
|
virtual |
Definition at line 55 of file parserBase.cxx.
References _stackParser, DEBTRACE, saxContext, and XML_SetUserData().
Referenced by YACS::YACSLoader::load(), YACS::roottypeParser::onStart(), YACS::controltypeParser< T >::onStart(), YACS::codetypeParser::onStart(), YACS::outputdatatypeParser::onStart(), YACS::presetdatatypeParser::onStart(), YACS::componentinstancetypeParser::onStart(), onStart(), YACS::valuetypeParser::onStart(), YACS::casetypeParser::onStart(), YACS::nodetypeParser< T >::onStart(), YACS::containertypeParser::onStart(), YACS::seqtypeParser::onStart(), YACS::datatypeParser::onStart(), YACS::linktypeParser< T >::onStart(), YACS::switchtypeParser::onStart(), YACS::objtypeParser::onStart(), YACS::memberdatatypeParser::onStart(), YACS::HMI::presentationtype_parser::onStart(), YACS::structdatatypeParser::onStart(), YACS::arraytypeParser::onStart(), YACS::structtypeParser::onStart(), YACS::parametertypeParser::onStart(), and YACS::dynparalooptypeParser< T >::onStart().
|
static |
Definition at line 225 of file parserBase.cxx.
References DEBTRACE.
Referenced by YACS::YACSLoader::load().
|
static |
Definition at line 237 of file parserBase.cxx.
References DEBTRACE, incrCount(), and onStart().
Referenced by YACS::YACSLoader::load().
|
static |
Definition at line 284 of file parserBase.cxx.
References DEBTRACE.
Referenced by YACS::YACSLoader::load().
|
static |
Definition at line 219 of file parserBase.cxx.
Referenced by end_element(), and SetUserDataAndPush().
std::string YACS::parser::_content |
Definition at line 97 of file parserBase.hxx.
Referenced by charData(), YACS::stringtypeParser::post(), YACS::doubletypeParser::post(), YACS::inttypeParser::post(), and YACS::booltypeParser::post().
std::map<std::string,int>* YACS::parser::_counts |
Definition at line 98 of file parserBase.hxx.
Referenced by endParser(), incrCount(), init(), maxcount(), mincount(), and ~parser().
std::map<std::string,parser*>* YACS::parser::_defaultParsersMap |
Definition at line 107 of file parserBase.hxx.
Referenced by YACS::roottypeParser::setDefaultMap().
std::string YACS::parser::_file |
Definition at line 96 of file parserBase.hxx.
Referenced by YACS::YACSLoader::load(), and logError().
int YACS::parser::_level |
Definition at line 101 of file parserBase.hxx.
Referenced by endParser(), init(), and ~parser().
std::map<std::string,int> YACS::parser::_orders |
Definition at line 99 of file parserBase.hxx.
Referenced by YACS::bloctypeParser< T >::bloctypeParser(), checkOrder(), and YACS::proctypeParser< T >::proctypeParser().
int YACS::parser::_orderState |
Definition at line 100 of file parserBase.hxx.
Referenced by checkOrder(), endParser(), and init().
std::stack<std::map<std::string,int>*> YACS::parser::_stackCount |
Definition at line 102 of file parserBase.hxx.
Referenced by endParser(), and init().
std::stack<int> YACS::parser::_stackOrder |
Definition at line 103 of file parserBase.hxx.
Referenced by endParser(), and init().
|
static |
Definition at line 42 of file parserBase.hxx.
Referenced by end_element(), getStack(), YACS::YACSLoader::load(), and SetUserDataAndPush().
|
static |
Definition at line 41 of file parserBase.hxx.
Referenced by YACS::YACSLoader::load(), logError(), YACS::roottypeParser::onStart(), YACS::remotetypeParser< T >::onStart(), YACS::controltypeParser< T >::onStart(), YACS::servertypeParser< T >::onStart(), YACS::codetypeParser::onStart(), YACS::sinlinetypeParser< T >::onStart(), YACS::presetdatatypeParser::onStart(), YACS::outputdatatypeParser::onStart(), YACS::componentinstancetypeParser::onStart(), YACS::looptypeParser< T >::onStart(), YACS::proctypeParser< T >::onStart(), onStart(), YACS::inporttypeParser< T >::onStart(), YACS::valuetypeParser::onStart(), YACS::casetypeParser::onStart(), YACS::inlinetypeParser< T >::onStart(), YACS::servicetypeParser< T >::onStart(), YACS::nodetypeParser< T >::onStart(), YACS::containertypeParser::onStart(), YACS::seqtypeParser::onStart(), YACS::datatypeParser::onStart(), YACS::bloctypeParser< T >::onStart(), YACS::linktypeParser< T >::onStart(), YACS::switchtypeParser::onStart(), YACS::objtypeParser::onStart(), YACS::memberdatatypeParser::onStart(), YACS::outnodetypeParser< T >::onStart(), YACS::HMI::presentationtype_parser::onStart(), YACS::structdatatypeParser::onStart(), YACS::presettypeParser< T >::onStart(), YACS::arraytypeParser::onStart(), YACS::structtypeParser::onStart(), and YACS::parametertypeParser::onStart().