#include <XmlParser.hh>
Public Member Functions | |
XmlParser (RootObject *root) | |
Build a parser. | |
RootObject * | parse (std::string pathToXmlFile) |
Main method to parse .xml FOM file. | |
Static Public Member Functions | |
static bool | exists (void) |
Return true if the XML parser is available. | |
Private Member Functions | |
void | parseClass (ObjectClass *parent) |
Parse the current class node. | |
void | parseInteraction (Interaction *parent) |
Parse the current interaction node. | |
void | parseRoutingSpace (void) |
Parse a routing space from current node. | |
Private Attributes | |
int | freeObjectClassHandle |
int | freeInteractionClassHandle |
int | freeAttributeHandle |
int | freeParameterHandle |
int | freeSpaceHandle |
std::string | filename |
RootObject * | root |
Definition at line 48 of file XmlParser.hh.
XmlParser | ( | RootObject * | root | ) |
Build a parser.
root | the root object of the FOM. |
Definition at line 344 of file XmlParser.cc.
RootObject * parse | ( | std::string | pathToXmlFile | ) |
Main method to parse .xml FOM file.
[in] | pathToXmlFile | the path to the XML file. |
Definition at line 348 of file XmlParser.cc.
Referenced by RTIA::chooseFederateProcessing(), and Federation::Federation().
bool exists | ( | void | ) | [static] |
Return true if the XML parser is available.
XML Parser may not be available if CERTI was compiled without XML support. In this case you should use the .fed file parser.
Definition at line 353 of file XmlParser.cc.
Referenced by RTIA::chooseFederateProcessing(), and Federation::Federation().
void parseClass | ( | ObjectClass * | parent | ) | [private] |
Parse the current class node.
[in,out] | parent | the parent object class |
void parseInteraction | ( | Interaction * | parent | ) | [private] |
Parse the current interaction node.
[in,out] | parent | the parent interaction node |
void parseRoutingSpace | ( | void | ) | [private] |
Parse a routing space from current node.
int freeObjectClassHandle [private] |
Definition at line 122 of file XmlParser.hh.
int freeInteractionClassHandle [private] |
Definition at line 123 of file XmlParser.hh.
int freeAttributeHandle [private] |
Definition at line 124 of file XmlParser.hh.
int freeParameterHandle [private] |
Definition at line 125 of file XmlParser.hh.
int freeSpaceHandle [private] |
Definition at line 126 of file XmlParser.hh.
std::string filename [private] |
Definition at line 128 of file XmlParser.hh.
RootObject* root [private] |
Definition at line 129 of file XmlParser.hh.