Class for sequence parser. More...
#include <typeParsers.hxx>


Public Member Functions | |
| virtual void | onStart (const XML_Char *el, const XML_Char **attr) |
| virtual void | onEnd (const char *el, parser *child) |
| virtual void | buildAttr (const XML_Char **attr) |
| void | name (const std::string &name) |
| void | content (const std::string &name) |
| YACS::ENGINE::TypeCode * | post () |
Public Member Functions inherited from YACS::parser | |
| parser () | |
| virtual | ~parser () |
| virtual void | SetUserDataAndPush (parser *pp) |
| 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) |
| std::stack< parser * > & | getStack () |
| template<class T > | |
| T | post () |
| void | logError (const std::string &reason) |
Public Attributes | |
| YACS::ENGINE::TypeCode * | _contentType |
| std::string | _name |
Public Attributes inherited from YACS::parser | |
| 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 seqtypeParser | seqParser |
Static Public Attributes inherited from YACS::parser | |
| static parser | main_parser |
| static std::stack< parser * > | _stackParser |
Additional Inherited Members | |
Static Public Member Functions inherited from YACS::parser | |
| 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) |
Class for sequence parser.
Class used to parse a sequence (type) definition (class TypeCodeSeq in implementation)
XML schema is
<xsd:complexType name="SequenceType">
<xsd:attribute name="name" type="xsd:string" use="required"/>
<xsd:attribute name="content" type="xsd:string" use="required"/>
</xsd:complexType>
Definition at line 69 of file typeParsers.hxx.
|
virtual |
Reimplemented from YACS::parser.
Definition at line 87 of file typeParsers.cxx.
References content(), yacsorb.CORBAEngineTest::i, name(), and YACS::parser::required().
| void YACS::seqtypeParser::content | ( | const std::string & | name | ) |
Definition at line 104 of file typeParsers.cxx.
References _contentType, currentProc, DEBTRACE, YACS::ENGINE::Runtime::getTypeCode(), name(), gui.Appli::t, theRuntime, and YACS::ENGINE::Proc::typeMap.
Referenced by buildAttr().
| void YACS::seqtypeParser::name | ( | const std::string & | name | ) |
Definition at line 99 of file typeParsers.cxx.
References _name, and DEBTRACE.
Referenced by buildAttr(), and content().
|
virtual |
Reimplemented from YACS::parser.
Definition at line 83 of file typeParsers.cxx.
References DEBTRACE.
Reimplemented from YACS::parser.
Definition at line 74 of file typeParsers.cxx.
References YACS::parser::buildAttr(), DEBTRACE, YACS::parser::init(), YACS::parser::main_parser, YACS::parser::pre(), and YACS::parser::SetUserDataAndPush().
| ENGINE::TypeCode * YACS::seqtypeParser::post | ( | ) |
Definition at line 126 of file typeParsers.cxx.
References _contentType, _name, YACS::ENGINE::Proc::createSequenceTc(), currentProc, DEBTRACE, and gui.Appli::t.
| YACS::ENGINE::TypeCode* YACS::seqtypeParser::_contentType |
Definition at line 78 of file typeParsers.hxx.
| std::string YACS::seqtypeParser::_name |
Definition at line 79 of file typeParsers.hxx.
|
static |
Definition at line 71 of file typeParsers.hxx.
Referenced by YACS::proctypeParser< T >::onStart().