![]() |
VR-Link API Documentation for HLA 1516
|
Instances of DtXmlFedReader1516e are used to read a FED file, and fill in a DtFedTarget with the information read. More...
Inheritance diagram for DtXmlFedReader1516e:
Collaboration diagram for DtXmlFedReader1516e:Public Member Functions | |
| DtXmlFedReader1516e () | |
| Constructor. | |
| virtual | ~DtXmlFedReader1516e () |
| Destructor. | |
| virtual DtFedReadStatus | readFedFilePtr (FILE *filePointer, DtFedTarget *fedTarget, DtFilename fileName, bool strictCheckingEnabled=false, bool useDTD=false, bool dontParseSwitches=false) |
| Read the FED file fedFileName, setting values to fedTarget. | |
| virtual void | setSchemaValidationEnabled (bool enabled) |
| Sets whether or not schema validation should be performed. | |
Static Public Member Functions | |
| static bool | isEvolvedFormat (void *fedFilePtr) |
Protected Member Functions | |
| virtual bool | schemaValidate (xmlDoc *pDoc, const char *schemaFile) |
| Validate the file against the given DTD. | |
| virtual DtFedReadStatus | openFile (const char *fedFileName, xmlDoc **newXmlDocTree) |
| open FED file and create a new XML Document Tree object | |
| virtual DtFedReadStatus | processFed (xmlNode *fedObj) |
| process the FED directive | |
| virtual DtFedReadStatus | parseTransportationsList (xmlNode *currentNode) |
| process the transportations directive | |
| virtual DtFedReadStatus | processObjects (xmlNode *currentNode) |
| process the Objects directive | |
| virtual DtFedReadStatus | processInteractions (xmlNode *currentNode) |
| process the Interactions directive | |
| virtual DtFedReadStatus | parseObjectTree (xmlNode *currentNode, const DtString &parentName) |
| process the list object of classes | |
| virtual DtFedReadStatus | parseAttribute (xmlNode *currentNode, const DtString &parentName) |
| process an attribute of an object class | |
| virtual DtFedReadStatus | parseAttributeDimensions (xmlNode *currentNode, DtString const &objectClass, DtString const &attribute) |
| process attribute dimension associations | |
| virtual DtFedReadStatus | parseInteractionTree (xmlNode *currentNode, const DtString &parentName) |
| process the list of interaction classes | |
| virtual DtFedReadStatus | parseInteractionDimensions (xmlNode *currentNode, DtString const &interactionClass) |
| process attribute dimension associations | |
| virtual DtFedReadStatus | parseDimensionList (xmlNode *currentNode) |
| process the list of dimensions | |
| virtual DtFedReadStatus | parseDimension (xmlNode *currentNode) |
| process a dimension | |
| virtual DtFedReadStatus | parseSwitches (xmlNode *currentNode) |
| process switches | |
| virtual DtFedReadStatus | parseUpdateRates (xmlNode *currentNode) |
| process update rates | |
| virtual DtFedReadStatus | parseParameter (xmlNode *currentNode, const DtString &parentName) |
| process a parameter of an interaction class | |
| virtual DtFedReadStatus | parseTransportationTree (xmlNode *currentNode) |
| process the list of transportation classes | |
| virtual DtFedReadStatus | parseDataTypeTree (xmlNode *currentNode) |
| process the list of datatype classes | |
| virtual DtFedReadStatus | parseNotesTree (xmlNode *currentNode) |
| process the list of notes classes | |
| virtual DtFedReadStatus | parseTagsTree (xmlNode *currentNode) |
| process the list of user defined tags. | |
| virtual DtFedReadStatus | parseBasicDataTypesTree (xmlNode *currentNode) |
| process the list of basic data representations | |
| virtual DtFedReadStatus | parseSimpleDataTypesTree (xmlNode *currentNode) |
| process the list of simple data types | |
| virtual DtFedReadStatus | parseArrayDataTypesTree (xmlNode *currentNode) |
| process the list of array data types | |
| virtual DtFedReadStatus | parseEnumeratedDataTypesTree (xmlNode *currentNode) |
| process the list of enumerated data types | |
| virtual DtFedReadStatus | parseFixedRecordDataTypesTree (xmlNode *currentNode) |
| process the list of fixed record data types | |
| virtual DtFedReadStatus | parseVariantRecordDataTypesTree (xmlNode *currentNode) |
| process the list of variant record data types | |
| virtual void | appendNodeProperties (xmlNode *currentNode, DtString &output) const |
| Appends the list of properties attached to an XML node to the given string. | |
| virtual void | appendNodeContent (xmlNode *node, DtString &output) const |
| Appends the name and content of the given node to the given string. | |
| virtual bool | isBlankText (xmlNode *node) const |
| Return true if the node is blank text (space, tab, newline) | |
| virtual const xmlChar * | propertyByName (xmlNode *node, const xmlChar *name) |
| Return the data for the specified property of the given node. | |
| virtual bool | getPropertyByName (xmlNode *node, const xmlChar *name, DtString &propertyContent) |
| Fill in a string with the data for the specified property of the given node (empty string if property not found) Return true if property is found. | |
| virtual bool | getChildContentByName (xmlNode *node, const xmlChar *name, DtString &childContent) |
| Fill in a string with the data for the specified child of the given node (empty string if child not found) Return true if child is found. | |
| virtual DtFedReadStatus | getTransportType (xmlNode *currentNode, DtTransportType &transportType) |
| get the data for the Transportation attribute of the current node | |
| virtual DtFedReadStatus | getOrderType (xmlNode *currentNode, DtOrderType &orderType) |
| get the data for the Order attribute of the current node | |
| bool | convertStringToULong (std::string numericString, unsigned long &value) |
| template<typename operandType > | |
| void | clipPrefix (std::string &valueSpec, operandType c) |
Static Protected Member Functions | |
| static xmlNode * | getNodeByName (xmlNode *currentNode, const xmlChar *nodeName) |
| get the specified node | |
| static const xmlChar * | childContentByName (xmlNode *node, const xmlChar *name) |
| Return the data for the specified child of the given node. | |
Protected Attributes | |
| DtFedTarget * | myFedTarget |
| bool | mySchemaValidationEnabled |
Private Member Functions | |
| DtXmlFedReader1516e (const DtXmlFedReader1516e &) | |
| Copy constructor and Assignment operator - Unimplemented. | |
| DtXmlFedReader1516e & | operator= (const DtXmlFedReader1516e &) |
Instances of DtXmlFedReader1516e are used to read a FED file, and fill in a DtFedTarget with the information read.
The FED file must be in the HLA Evolved XML file format
Constructor.
| virtual DtXmlFedReader1516e::~DtXmlFedReader1516e | ( | ) | [virtual] |
Destructor.
| DtXmlFedReader1516e::DtXmlFedReader1516e | ( | const DtXmlFedReader1516e & | ) | [private] |
Copy constructor and Assignment operator - Unimplemented.
| virtual void DtXmlFedReader1516e::appendNodeContent | ( | xmlNode * | node, |
| DtString & | output | ||
| ) | const [protected, virtual] |
Appends the name and content of the given node to the given string.
| virtual void DtXmlFedReader1516e::appendNodeProperties | ( | xmlNode * | currentNode, |
| DtString & | output | ||
| ) | const [protected, virtual] |
Appends the list of properties attached to an XML node to the given string.
| static const xmlChar* DtXmlFedReader1516e::childContentByName | ( | xmlNode * | node, |
| const xmlChar * | name | ||
| ) | [static, protected] |
Return the data for the specified child of the given node.
| void DtXmlFedReader1516e::clipPrefix | ( | std::string & | valueSpec, |
| operandType | c | ||
| ) | [protected] |
| bool DtXmlFedReader1516e::convertStringToULong | ( | std::string | numericString, |
| unsigned long & | value | ||
| ) | [protected] |
| virtual bool DtXmlFedReader1516e::getChildContentByName | ( | xmlNode * | node, |
| const xmlChar * | name, | ||
| DtString & | childContent | ||
| ) | [protected, virtual] |
Fill in a string with the data for the specified child of the given node (empty string if child not found) Return true if child is found.
| static xmlNode* DtXmlFedReader1516e::getNodeByName | ( | xmlNode * | currentNode, |
| const xmlChar * | nodeName | ||
| ) | [static, protected] |
get the specified node
| virtual DtFedReadStatus DtXmlFedReader1516e::getOrderType | ( | xmlNode * | currentNode, |
| DtOrderType & | orderType | ||
| ) | [protected, virtual] |
get the data for the Order attribute of the current node
| virtual bool DtXmlFedReader1516e::getPropertyByName | ( | xmlNode * | node, |
| const xmlChar * | name, | ||
| DtString & | propertyContent | ||
| ) | [protected, virtual] |
Fill in a string with the data for the specified property of the given node (empty string if property not found) Return true if property is found.
| virtual DtFedReadStatus DtXmlFedReader1516e::getTransportType | ( | xmlNode * | currentNode, |
| DtTransportType & | transportType | ||
| ) | [protected, virtual] |
get the data for the Transportation attribute of the current node
| virtual bool DtXmlFedReader1516e::isBlankText | ( | xmlNode * | node | ) | const [protected, virtual] |
Return true if the node is blank text (space, tab, newline)
| static bool DtXmlFedReader1516e::isEvolvedFormat | ( | void * | fedFilePtr | ) | [static] |
| virtual DtFedReadStatus DtXmlFedReader1516e::openFile | ( | const char * | fedFileName, |
| xmlDoc ** | newXmlDocTree | ||
| ) | [protected, virtual] |
open FED file and create a new XML Document Tree object
| DtXmlFedReader1516e& DtXmlFedReader1516e::operator= | ( | const DtXmlFedReader1516e & | ) | [private] |
| virtual DtFedReadStatus DtXmlFedReader1516e::parseArrayDataTypesTree | ( | xmlNode * | currentNode | ) | [protected, virtual] |
process the list of array data types
| virtual DtFedReadStatus DtXmlFedReader1516e::parseAttribute | ( | xmlNode * | currentNode, |
| const DtString & | parentName | ||
| ) | [protected, virtual] |
process an attribute of an object class
| virtual DtFedReadStatus DtXmlFedReader1516e::parseAttributeDimensions | ( | xmlNode * | currentNode, |
| DtString const & | objectClass, | ||
| DtString const & | attribute | ||
| ) | [protected, virtual] |
process attribute dimension associations
| virtual DtFedReadStatus DtXmlFedReader1516e::parseBasicDataTypesTree | ( | xmlNode * | currentNode | ) | [protected, virtual] |
process the list of basic data representations
| virtual DtFedReadStatus DtXmlFedReader1516e::parseDataTypeTree | ( | xmlNode * | currentNode | ) | [protected, virtual] |
process the list of datatype classes
| virtual DtFedReadStatus DtXmlFedReader1516e::parseDimension | ( | xmlNode * | currentNode | ) | [protected, virtual] |
process a dimension
| virtual DtFedReadStatus DtXmlFedReader1516e::parseDimensionList | ( | xmlNode * | currentNode | ) | [protected, virtual] |
process the list of dimensions
| virtual DtFedReadStatus DtXmlFedReader1516e::parseEnumeratedDataTypesTree | ( | xmlNode * | currentNode | ) | [protected, virtual] |
process the list of enumerated data types
| virtual DtFedReadStatus DtXmlFedReader1516e::parseFixedRecordDataTypesTree | ( | xmlNode * | currentNode | ) | [protected, virtual] |
process the list of fixed record data types
| virtual DtFedReadStatus DtXmlFedReader1516e::parseInteractionDimensions | ( | xmlNode * | currentNode, |
| DtString const & | interactionClass | ||
| ) | [protected, virtual] |
process attribute dimension associations
| virtual DtFedReadStatus DtXmlFedReader1516e::parseInteractionTree | ( | xmlNode * | currentNode, |
| const DtString & | parentName | ||
| ) | [protected, virtual] |
process the list of interaction classes
| virtual DtFedReadStatus DtXmlFedReader1516e::parseNotesTree | ( | xmlNode * | currentNode | ) | [protected, virtual] |
process the list of notes classes
| virtual DtFedReadStatus DtXmlFedReader1516e::parseObjectTree | ( | xmlNode * | currentNode, |
| const DtString & | parentName | ||
| ) | [protected, virtual] |
process the list object of classes
| virtual DtFedReadStatus DtXmlFedReader1516e::parseParameter | ( | xmlNode * | currentNode, |
| const DtString & | parentName | ||
| ) | [protected, virtual] |
process a parameter of an interaction class
| virtual DtFedReadStatus DtXmlFedReader1516e::parseSimpleDataTypesTree | ( | xmlNode * | currentNode | ) | [protected, virtual] |
process the list of simple data types
| virtual DtFedReadStatus DtXmlFedReader1516e::parseSwitches | ( | xmlNode * | currentNode | ) | [protected, virtual] |
process switches
| virtual DtFedReadStatus DtXmlFedReader1516e::parseTagsTree | ( | xmlNode * | currentNode | ) | [protected, virtual] |
process the list of user defined tags.
| virtual DtFedReadStatus DtXmlFedReader1516e::parseTransportationsList | ( | xmlNode * | currentNode | ) | [protected, virtual] |
process the transportations directive
| virtual DtFedReadStatus DtXmlFedReader1516e::parseTransportationTree | ( | xmlNode * | currentNode | ) | [protected, virtual] |
process the list of transportation classes
| virtual DtFedReadStatus DtXmlFedReader1516e::parseUpdateRates | ( | xmlNode * | currentNode | ) | [protected, virtual] |
process update rates
| virtual DtFedReadStatus DtXmlFedReader1516e::parseVariantRecordDataTypesTree | ( | xmlNode * | currentNode | ) | [protected, virtual] |
process the list of variant record data types
| virtual DtFedReadStatus DtXmlFedReader1516e::processFed | ( | xmlNode * | fedObj | ) | [protected, virtual] |
process the FED directive
| virtual DtFedReadStatus DtXmlFedReader1516e::processInteractions | ( | xmlNode * | currentNode | ) | [protected, virtual] |
process the Interactions directive
| virtual DtFedReadStatus DtXmlFedReader1516e::processObjects | ( | xmlNode * | currentNode | ) | [protected, virtual] |
process the Objects directive
| virtual const xmlChar* DtXmlFedReader1516e::propertyByName | ( | xmlNode * | node, |
| const xmlChar * | name | ||
| ) | [protected, virtual] |
Return the data for the specified property of the given node.
| virtual DtFedReadStatus DtXmlFedReader1516e::readFedFilePtr | ( | FILE * | filePointer, |
| DtFedTarget * | fedTarget, | ||
| DtFilename | fileName, | ||
| bool | strictCheckingEnabled = false, |
||
| bool | useDTD = false, |
||
| bool | dontParseSwitches = false |
||
| ) | [virtual] |
Read the FED file fedFileName, setting values to fedTarget.
Note if fedTarget is NULL the fedfile will be read and verified only.
Reimplemented from DtFedReader.
| virtual bool DtXmlFedReader1516e::schemaValidate | ( | xmlDoc * | pDoc, |
| const char * | schemaFile | ||
| ) | [protected, virtual] |
Validate the file against the given DTD.
| virtual void DtXmlFedReader1516e::setSchemaValidationEnabled | ( | bool | enabled | ) | [virtual] |
Sets whether or not schema validation should be performed.
DtFedTarget* DtXmlFedReader1516e::myFedTarget [protected] |
Reimplemented from DtFedReader.
bool DtXmlFedReader1516e::mySchemaValidationEnabled [protected] |