![]() |
VR-Link API Documentation for HLA 1.3
|
Instances of DtFedReader1516e are used to read a FED file, and fill in a DtFedTarget with the information read. More...
Inheritance diagram for DtFedReader1516e:
Collaboration diagram for DtFedReader1516e:Public Member Functions | |
| DtFedReader1516e () | |
| Constructor. More... | |
| virtual | ~DtFedReader1516e () |
| Destructor. More... | |
| virtual DtFedReadStatus | readFedFilePtr (FILE *filePointer, DtFedTarget *fedTarget, DtFilename fileName, unsigned int strictCheckingMask=DtFedReadStrictDisabled, bool useDTD=false, bool dontParseSwitches=false) |
| Read the FED file fedFileName, setting values to fedTarget. More... | |
| virtual void | setSchemaValidationEnabled (bool enabled) |
| Sets whether or not schema validation should be performed. More... | |
Public Member Functions inherited from DtXmlFedReader | |
| DtXmlFedReader () | |
| Constructor. More... | |
| virtual | ~DtXmlFedReader () |
| Destructor. More... | |
Public Member Functions inherited from DtFedReader | |
| DtFedReader () | |
| Constructor. More... | |
| virtual | ~DtFedReader () |
| Destructor. More... | |
| virtual DtFedReadStatus | readFed (const char *fedFileName, DtFedTarget *fedTarget, unsigned int strictCheckingMask=DtFedReadStrictDisabled, bool useDTD=false, bool dontParseSwitches=false) |
| Read the FED file fedFileName, setting values to fedTarget. More... | |
| virtual FILE * | openFedFileWithErrCheck (const char *fileName, bool isBinary=false) |
| get the a file handle to the FED File for reading in text or binary mode More... | |
| virtual unsigned int | setStrictChecking (unsigned int checkMask) |
| Set status of strict checking. More... | |
| virtual bool | strictChecking (unsigned int checkMask) const |
| Returns bool: strictChecking enabled for types of checks provided. More... | |
| virtual void | setExpectedFomType (DtFomType fomType) |
| Set/Get expected FOM type. More... | |
| virtual DtFomType | expectedFomType () const |
| virtual DtFomType | lastFomType () const |
| Returns the FOM type of the last FOM read. More... | |
| virtual const DtString & | lastError () const |
| Get the last error. More... | |
| char * | takeCurrFddData () |
Protected Member Functions | |
| virtual DtFedReadStatus | processXmlDocPtr (xmlDocPtr xmlDocument) |
| Process the XML document. More... | |
| virtual DtFedReadStatus | parseTimeTree (xmlNode *currentNode) |
| process the time directive More... | |
| virtual DtFedReadStatus | parseSynchronizationsTree (xmlNode *currentNode) |
| process the synchronization points directive More... | |
| DtFedReadStatus | getSharingType (xmlNode *currentNode, DtSharingType &sharingType) |
| get the data for the sharing type attribute of the current node More... | |
| DtFedReadStatus | getSemantics (xmlNode *currentNode, DtString &semanticsVal) |
| get the data for the semantics attribute of the current node More... | |
| DtFedReadStatus | getNotes (xmlNode *currentNode, DtString ¬esVal) |
| get the data for the notes attribute of the current node More... | |
| DtFedReadStatus | getOwnershipType (xmlNode *currentNode, DtOwnershipType &ownershipVal) |
| get the data for the ownership type attribute of the current node More... | |
| DtFedReadStatus | getUpdateCondition (xmlNode *currentNode, DtString &updateConditionVal) |
| get the data for the update condition attribute of the current node More... | |
| DtFedReadStatus | getUpdateType (xmlNode *currentNode, DtFomUpdateType &updateTypeVal) |
| get the data for the update type attribute of the current node More... | |
| virtual bool | schemaValidate (xmlDoc *pDoc, const char *schemaFile) |
| Validate the file against the given DTD. More... | |
| virtual DtFedReadStatus | processFed (xmlNode *fedObj) |
| process the FED directive More... | |
| virtual DtFedReadStatus | parseTransportationsList (xmlNode *currentNode) |
| process the transportations directive More... | |
| virtual DtFedReadStatus | processModelIdentification (xmlNode *currentNode) |
| process the Model Identification directive More... | |
| virtual DtFedReadStatus | processObjects (xmlNode *currentNode) |
| process the Objects directive More... | |
| virtual DtFedReadStatus | processInteractions (xmlNode *currentNode) |
| process the Interactions directive More... | |
| virtual DtFedReadStatus | parseObjectTree (xmlNode *currentNode, const DtString &parentName) |
| process the list object of classes More... | |
| virtual DtFedReadStatus | parseObjectDimensions (xmlNode *currentNode, DtString const &objectClass) |
| process object class dimension associations More... | |
| virtual DtFedReadStatus | parseAttribute (xmlNode *currentNode, const DtString &parentName) |
| process an attribute of an object class More... | |
| virtual DtFedReadStatus | parseAttributeDimensions (xmlNode *currentNode, DtString const &objectClass, DtString const &attribute) |
| process attribute dimension associations More... | |
| virtual DtFedReadStatus | parseInteractionTree (xmlNode *currentNode, const DtString &parentName) |
| process the list of interaction classes More... | |
| virtual DtFedReadStatus | parseInteractionDimensions (xmlNode *currentNode, DtString const &interactionClass) |
| process attribute dimension associations More... | |
| virtual DtFedReadStatus | parseDimensionList (xmlNode *currentNode) |
| process the list of dimensions More... | |
| virtual DtFedReadStatus | parseDimension (xmlNode *currentNode) |
| process a dimension More... | |
| virtual DtFedReadStatus | parseSwitches (xmlNode *currentNode) |
| process switches More... | |
| virtual DtFedReadStatus | parseUpdateRates (xmlNode *currentNode) |
| process update rates More... | |
| virtual DtFedReadStatus | parseParameter (xmlNode *currentNode, const DtString &parentName) |
| process a parameter of an interaction class More... | |
| virtual DtFedReadStatus | parseDataTypeTree (xmlNode *currentNode) |
| process the list of datatype nodes More... | |
| virtual DtFedReadStatus | parseDataType (xmlNode *currentNode) |
| process a datatype node More... | |
| virtual DtFedReadStatus | parseNotesTree (xmlNode *currentNode) |
| process the list of notes nodes More... | |
| virtual DtFedReadStatus | parseTagsTree (xmlNode *currentNode) |
| process the list of user defined tags. More... | |
| virtual DtFedReadStatus | parseBasicDataTypesTree (xmlNode *currentNode) |
| process the list of basic data representations More... | |
| virtual DtFedReadStatus | parseSimpleDataTypesTree (xmlNode *currentNode) |
| process the list of simple data types More... | |
| virtual DtFedReadStatus | parseArrayDataTypesTree (xmlNode *currentNode) |
| process the list of array data types More... | |
| virtual DtFedReadStatus | parseEnumeratedDataTypesTree (xmlNode *currentNode) |
| process the list of enumerated data types More... | |
| virtual DtFedReadStatus | parseFixedRecordDataTypesTree (xmlNode *currentNode) |
| process the list of fixed record data types More... | |
| virtual DtFedReadStatus | parseVariantRecordDataTypesTree (xmlNode *currentNode) |
| process the list of variant record data types More... | |
| virtual void | appendNodeProperties (xmlNode *currentNode, DtString &output) const |
| Appends the list of properties attached to an XML node to the given string. More... | |
| virtual void | appendNodeContent (xmlNode *node, DtString &output) const |
| Appends the name and content of the given node to the given string. More... | |
| virtual const xmlChar * | propertyByName (xmlNode *node, const xmlChar *name) |
| Return the data for the specified property of the given node. More... | |
| 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. More... | |
| virtual DtFedReadStatus | getTransportType (xmlNode *currentNode, DtTransportType &transportType, DtNamePair nameType, bool isAttribute) |
| get the data for the Transportation attribute of the current node More... | |
| virtual DtFedReadStatus | getOrderType (xmlNode *currentNode, DtOrderType &orderType) |
| get the data for the Order attribute of the current node More... | |
| virtual DtFedReadStatus | readFedFilePtr (FILE *filePointer, DtFedTarget *fedTarget, DtFilename fileName, DtFomType fomType, unsigned int strictCheckingMask=DtFedReadStrictDisabled, bool useDTD=false, bool dontParseSwitches=false) |
| Read the FED file fedFileName, setting values to fedTarget. More... | |
Protected Member Functions inherited from DtXmlFedReader | |
| virtual DtFedReadStatus | parseTransportationTree (xmlNode *currentNode) |
| process the list of transportation classes More... | |
| virtual bool | isBlankText (xmlNode *node) const |
| Return true if the node is blank text (space, tab, newline) More... | |
| virtual bool | getChildrenContent (xmlNode *node, DtString &content) const |
| Get the children content of the given node into the given string. More... | |
| virtual DtString | childrenContent (xmlNode *node) const |
| Return the children content of the given node. More... | |
| 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. More... | |
| virtual bool | convertStringToULong (std::string numericString, unsigned long &value) |
| Convert the given string to a long value. More... | |
| template<typename stringType , typename charType > | |
| void | clipPrefix (stringType &valueSpec, charType c) |
| Clip the characters from beginning of string up to the first occurrence of the given character. More... | |
Protected Member Functions inherited from DtFedReader | |
| void | appendErrorLine (xmlNode *node, DtString &output) const |
Protected Attributes | |
| bool | mySchemaValidationEnabled |
| bool | myReplacedObjectRoot |
| Indicates when federation's FOM is 1.3 and root name has been replaced to match. More... | |
| bool | myReplacedInteractionRoot |
| Indicates when federation's FOM is 1.3 and root name has been replaced to match. More... | |
| char * | myHLAstandardMIM_xml |
| The HLA Standard MIM in a byte array and its length. More... | |
| unsigned int | myHLAstandardMIM_xml_len |
| The HLA Standard MIM in a byte array and its length. More... | |
| const xmlChar * | myLogicalTimeAttribute |
| The name of the logical time and logical time interval attributes. More... | |
| const xmlChar * | myLogicalTimeIntervalAttribute |
| The name of the logical time and logical time interval attributes. More... | |
Protected Attributes inherited from DtXmlFedReader | |
| DtFedTarget * | myFedTarget |
| DtFilename | myFileBeingRead |
Protected Attributes inherited from DtFedReader | |
| DtFedTarget * | myFedTarget |
| DtFedReader * | myChildReader |
| unsigned int | myStrictChecking |
| bool | myDontParseSwitchTable |
| DtFomType | myExpectedFomType |
| When set, the FOM must conform to this type. More... | |
| DtFomType | myLastFomType |
| The type of FOM format that was last read. More... | |
| DtString | myLastError |
| Description of last encountered error. More... | |
Private Member Functions | |
| DtFedReader1516e (const DtFedReader1516e &) | |
| Copy constructor and Assignment operator - Unimplemented. More... | |
| DtFedReader1516e & | operator= (const DtFedReader1516e &) |
| Copy constructor and Assignment operator - Unimplemented. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from DtXmlFedReader | |
| static xmlNode * | getNodeByName (xmlNode *currentNode, const xmlChar *nodeName) |
| get the specified node More... | |
| static const xmlChar * | childContentByName (xmlNode *node, const xmlChar *name) |
| Return the data for the specified child of the given node. More... | |
| static DtFomType | fomType (void *fedFilePtr) |
| Inspect the file for indicators of what type of FOM file it is (1516, Evolved, 1516_2025, ...) More... | |
| static DtFomType | fomType (xmlNode *rootNode) |
| Inspect the file for indicators of what type of FOM file it is (1516, Evolved, 1516_2025, ...) More... | |
Static Public Member Functions inherited from DtFedReader | |
| static const DtString & | standardMimFileName (DtFomType fomType) |
| Return the standard MIM filename given the FOM type. More... | |
| static bool | isStandardMimFileName (DtString const &fileName, DtFomType fomType) |
| Return true if file is the standard MIM file of the given type. More... | |
| static FILE * | openFedFile (const char *fileName, bool isBinary=false) |
| Open file from name and return FILE*. More... | |
| static bool | readFileIntoBuffer (FILE *fileHandle, char **fileBuffer, unsigned int *fileSize) |
| Read the file from the FILE* into the buffer. More... | |
| static DtFomType | checkFomType (const char *fedFileName, void *fedFilePtr) |
| Get the FOM Type. More... | |
| static DtFomType | checkFomType (const char *fedFileName) |
| Get the FOM Type. More... | |
Public Attributes inherited from DtFedReader | |
| char * | myCurrFddBuffer |
| Buffer containing the most recently read FDD file. More... | |
| unsigned int | myCurrFddBufferSize |
| Size of the buffer for the most recently read FDD file. More... | |
Static Public Attributes inherited from DtFedReader | |
| static const DtString | theHlaEvolvedStandardMimFileName |
| static const DtString | theHla4StandardMimFileName |
| static const DtString | theInvalidStandardMimFileName |
Static Protected Attributes inherited from DtXmlFedReader | |
| static const DtString | theValueObjectRoot |
| static const DtString | theValuePrivilegeToDelete |
| static const DtString | theValueEnabled |
Instances of DtFedReader1516e 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
| DtFedReader1516e::DtFedReader1516e | ( | ) |
Constructor.
|
virtual |
Destructor.
|
private |
Copy constructor and Assignment operator - Unimplemented.
|
protectedvirtual |
Appends the name and content of the given node to the given string.
Reimplemented from DtXmlFedReader.
|
protectedvirtual |
Appends the list of properties attached to an XML node to the given string.
Reimplemented from DtXmlFedReader.
|
protected |
get the data for the notes attribute of the current node
|
protectedvirtual |
get the data for the Order attribute of the current node
|
protected |
get the data for the ownership type attribute of the current node
|
protectedvirtual |
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.
Reimplemented from DtXmlFedReader.
|
protected |
get the data for the semantics attribute of the current node
|
protected |
get the data for the sharing type attribute of the current node
|
protectedvirtual |
get the data for the Transportation attribute of the current node
|
protected |
get the data for the update condition attribute of the current node
|
protected |
get the data for the update type attribute of the current node
|
private |
Copy constructor and Assignment operator - Unimplemented.
|
protectedvirtual |
process the list of array data types
Implements DtXmlFedReader.
|
protectedvirtual |
process an attribute of an object class
Implements DtXmlFedReader.
|
protectedvirtual |
process attribute dimension associations
Implements DtXmlFedReader.
|
protectedvirtual |
process the list of basic data representations
Implements DtXmlFedReader.
|
protectedvirtual |
process a datatype node
Reimplemented in DtFedReader1516_4.
|
protectedvirtual |
process the list of datatype nodes
Implements DtXmlFedReader.
|
protectedvirtual |
process a dimension
Implements DtXmlFedReader.
|
protectedvirtual |
process the list of dimensions
Implements DtXmlFedReader.
|
protectedvirtual |
process the list of enumerated data types
Implements DtXmlFedReader.
|
protectedvirtual |
process the list of fixed record data types
Implements DtXmlFedReader.
|
protectedvirtual |
process attribute dimension associations
Implements DtXmlFedReader.
|
protectedvirtual |
process the list of interaction classes
Implements DtXmlFedReader.
|
protectedvirtual |
process the list of notes nodes
Implements DtXmlFedReader.
|
protectedvirtual |
process object class dimension associations
|
protectedvirtual |
process the list object of classes
Implements DtXmlFedReader.
|
protectedvirtual |
process a parameter of an interaction class
Implements DtXmlFedReader.
|
protectedvirtual |
process the list of simple data types
Implements DtXmlFedReader.
|
protectedvirtual |
process switches
Implements DtXmlFedReader.
|
protectedvirtual |
process the synchronization points directive
|
protectedvirtual |
process the list of user defined tags.
Implements DtXmlFedReader.
|
protectedvirtual |
process the time directive
|
protectedvirtual |
process the transportations directive
Implements DtXmlFedReader.
|
protectedvirtual |
process update rates
|
protectedvirtual |
process the list of variant record data types
Implements DtXmlFedReader.
|
protectedvirtual |
process the FED directive
Implements DtXmlFedReader.
|
protectedvirtual |
process the Interactions directive
Implements DtXmlFedReader.
|
protectedvirtual |
process the Model Identification directive
|
protectedvirtual |
process the Objects directive
Implements DtXmlFedReader.
|
protectedvirtual |
Process the XML document.
|
protectedvirtual |
Return the data for the specified property of the given node.
Reimplemented from DtXmlFedReader.
|
virtual |
Read the FED file fedFileName, setting values to fedTarget.
Note if fedTarget is NULL the fedfile will be read and verified only.
Implements DtXmlFedReader.
Reimplemented in DtFedReader1516_4.
|
protectedvirtual |
Read the FED file fedFileName, setting values to fedTarget.
Note if fedTarget is NULL the fedfile will be read and verified only.
|
protectedvirtual |
Validate the file against the given DTD.
|
virtual |
Sets whether or not schema validation should be performed.
|
protected |
The HLA Standard MIM in a byte array and its length.
|
protected |
The HLA Standard MIM in a byte array and its length.
|
protected |
The name of the logical time and logical time interval attributes.
|
protected |
The name of the logical time and logical time interval attributes.
|
protected |
Indicates when federation's FOM is 1.3 and root name has been replaced to match.
|
protected |
Indicates when federation's FOM is 1.3 and root name has been replaced to match.
|
protected |