![]() |
VR-Link API Documentation for HLA 1516
|
Instances of DtFedReader are used to read a FED file, and fill in a DtFedTarget with the information read. More...
Inheritance diagram for DtFedReader:
Collaboration diagram for DtFedReader:Public Member Functions | |
| 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 DtFedReadStatus | readFedFilePtr (FILE *fedFilePtr, DtFedTarget *fedTarget, DtFilename filename, unsigned int strictCheckingMask=DtFedReadStrictDisabled, bool useDTD=false, bool dontParseSwitches=false)=0 |
| Read the FED file from the FILE*, 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 () |
Static Public Member Functions | |
| 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 | |
| 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 | |
| static const DtString | theHlaEvolvedStandardMimFileName |
| static const DtString | theHla4StandardMimFileName |
| static const DtString | theInvalidStandardMimFileName |
Protected Member Functions | |
| void | appendErrorLine (xmlNode *node, DtString &output) const |
Protected Attributes | |
| 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 | |
| DtFedReader (const DtFedReader &) | |
| Copy constructor and Assignment operator - Unimplemented. More... | |
| DtFedReader & | operator= (const DtFedReader &) |
Instances of DtFedReader are used to read a FED file, and fill in a DtFedTarget with the information read.
Base class for contained file format specific (i.e. - mtl and xml) FED file readers
| DtFedReader::DtFedReader | ( | ) |
Constructor.
|
virtual |
Destructor.
|
private |
Copy constructor and Assignment operator - Unimplemented.
|
static |
Get the FOM Type.
|
static |
Get the FOM Type.
|
virtual |
|
static |
Return true if file is the standard MIM file of the given type.
|
virtual |
Get the last error.
|
virtual |
Returns the FOM type of the last FOM read.
|
static |
Open file from name and return FILE*.
|
virtual |
get the a file handle to the FED File for reading in text or binary mode
|
private |
|
virtual |
Read the FED file fedFileName, setting values to fedTarget.
Note if fedTarget is NULL the fedfile will be read and verified only.
|
pure virtual |
Read the FED file from the FILE*, setting values to fedTarget.
Note if fedTarget is NULL the fedfile will be read and verified only.
Implemented in DtFedReader1516e, DtFedReader1516, DtXmlFedReader, DtFedReader1516_4, DtFedReader13, and DtMtlFedReader.
|
static |
Read the file from the FILE* into the buffer.
|
virtual |
Set/Get expected FOM type.
Set status of strict checking.
Use Enums to OR together desired checks Returns the previous value of strict checking
Return the standard MIM filename given the FOM type.
Returns bool: strictChecking enabled for types of checks provided.
| char* DtFedReader::takeCurrFddData | ( | ) |
|
protected |
| char* DtFedReader::myCurrFddBuffer |
Buffer containing the most recently read FDD file.
| unsigned int DtFedReader::myCurrFddBufferSize |
Size of the buffer for the most recently read FDD file.
|
protected |
|
protected |
When set, the FOM must conform to this type.
|
protected |
|
protected |
Description of last encountered error.
|
protected |
The type of FOM format that was last read.
|
protected |
|
static |
|
static |
|
static |