#include <ymlentity.h>
Inheritance diagram for YMLEntity:
Public Member Functions | |
YMLEntity () | |
virtual | ~YMLEntity () |
void | addProperty (const char *name, const char *value) |
int | getNumProperties () |
const char * | getPropName (int i) |
const char * | getPropValue (int i) |
const char * | findProperty (const char *name) |
virtual void | setArgs (int argc, const char *const *args) |
int | getArgc () |
const char * | getArg (int i) |
void | setDoc (const char *doc) |
const char * | getDoc () |
virtual ymlentity_t | getType ()=0 |
virtual void | dumpXML (XMLSerializer &stream)=0 |
virtual void | dumpDOT (std::ostream &stream, int tabLevel) |
virtual void | finalize () |
virtual void | doFinalize ()=0 |
void | dumpXMLProperties (XMLSerializer &stream) |
Static Public Member Functions | |
static void | tabs (std::ostream &stream, int num) |
|
Construct a YMLEntity. |
|
Destruct a YMLEntity. Frees allocated property array and arguments. |
|
Add a YML property to this entity.
|
|
|
|
|
|
|
|
Get the property value by name.
|
|
Set this enitites arguments.
|
|
|
|
Get an XML argument.
|
|
Set the documentation for this entity. The documentation is copied in to an internal buffer.
|
|
|
|
Implemented in YMLConnection, YMLLink, YMLNetwork, YMLNode, and YMLPort. |
|
Dump the XML for this entity to the given stream.
Implemented in YMLLink, YMLNetwork, YMLNode, and YMLPort. |
|
Dump the GraphViz dot file representation of this entity. Each line of printing is prefixed by tabLevel number of tabs. The current line is assume to already be tabbed.
|
|
This function is overriden to allow classes to execute code to finalize their data structure. Reimplemented in PearlYMLNode. |
|
This function is called by the loader after parsing is finished. It should call finalized for itself and all its children. Implemented in YMLLink, YMLNetwork, YMLNode, and YMLPort. |
|
Print this Entities properties as XML.
|
|
Print num number of tabs.
|