#include <ymlsaxparser.h>
Inheritance diagram for YMLSAXParser:
Public Types | |
typedef std::list< ParseCall * > | parseCalls_t |
Public Member Functions | |
YMLSAXParser () | |
virtual | ~YMLSAXParser () |
void | setInterpreter (Interpreter *interpreter) |
virtual void | startNetwork (const char *name, const char *className) |
virtual void | endNetwork () |
virtual void | startNode (const char *name, const char *className) |
virtual void | endNode () |
virtual void | startLink (const char *object1, const char *port1, const char *object2, const char *port2) |
virtual void | endLink () |
virtual void | startPort (const char *name, const char *dir) |
virtual void | endPort () |
virtual void | startProperty (const char *name, const char *value) |
virtual void | endProperty () |
virtual void | doc (const char *data) |
virtual void | parseCall (call_t type, int argc, const char *const *args) |
void | executeSet (parseCalls_t::iterator start) |
void | startSet (const char *loop, const char *init, const char *cond) |
void | endSet () |
void | script (const char *data) |
const char * | lookup (const char *) |
void | lookupArgs (int argc, const char *const *args, const char **pargs) |
void | localParseCall (call_t type, int argc, const char *const *args) |
void | dispatch (call_t type, int argc, char **args) |
void | clearText () |
void | startDocument () |
void | endDocument () |
void | startElement (const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname, const XERCES_CPP_NAMESPACE::Attributes &attributes) |
void | endElement (const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname) |
void | characters (const XMLCh *const chars, const unsigned int length) |
Public Attributes | |
Interpreter * | interpreter |
BasicSmartPointer< XMLCh, SP_ARRAY > | text |
int | setDepth |
parseCalls_t | parseCalls |
Protected Member Functions | |
void | clearParseCalls () |
|
|
|
Construct a YMLSAXParser |
|
Destruct a YMLSAXParser |
|
Set the script interpreter. This intrepreter is used for the yml scripting features. Any class which correctly implements the Intrepreter interface may be used.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Calls the individual start and end Network, Node, Link, Port, Property and doc functions. Reimplementing this function is a good way to specialize the YMLSAXParser for your needs.
Reimplemented in YMLLoader. |
|
Execute a set by replaying the parse calls in side the set as perscribed by the sets loop control arguments.
|
|
This function should never be called.
|
|
Called on the end of a set element. Calls executeSet and then deallocates parse calls. |
|
Execute a bit of script in the intrepreter.
|
|
Lookup a variable as a string value in the Intrepreter.
|
|
Look up arguments which begin with $ as variables in the intrepreter.
|
|
Handles interpreter scope control, looks up variable arguments in the intrepreter and calls parseCall.
|
|
Dispatches a parse call to parseCall or localParseCall depending on if we are currently replaying a set or not.
|
|
|
|
Does nothing. Part of the DocumentHandler interface. |
|
Does nothing. Part of the DocumentHandler interface. |
|
|
|
Checks for the known YML types and dispatches parse calls for them.
|
|
Records text data.
|
|
|
|
The script interpreter.
|
|
The last parsed text.
|
|
How many sets we are deep.
|
|
Parse calls used to repeat sets.
|