VR-Link API Documentation for HLA Evolved
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions

Instances of DtMtlFedReader are used to read a FED file, and fill in a DtFedTarget with the information read. More...

+ Inheritance diagram for DtMtlFedReader:
+ Collaboration diagram for DtMtlFedReader:

Public Member Functions

 DtMtlFedReader ()
 Constructor.
virtual ~DtMtlFedReader ()
 Destructor.
virtual DtFedReadStatus readFedFilePtr (FILE *filePointer, DtFedTarget *fedTarget, DtFilename fedFileName, bool strictCheckingEnabled=false, bool useDTD=false, bool dontParseSwitches=false)
 Read the FED file fedFileName, setting values to fedTarget.
- Public Member Functions inherited from DtFedReader
 DtFedReader ()
 Constructor.
virtual ~DtFedReader ()
 Destructor.
virtual DtFedReadStatus readFed (const char *fedFileName, DtFedTarget *fedTarget, bool strictCheckingEnabled=false, bool useDTD=false, bool dontParseSwitches=false)
 Read the FED file fedFileName, setting values to fedTarget.
virtual FILE * openFedFile (const char *fileName, bool isBinary=false)
 get the a file handle to the FED File for reading in text or binary mode
virtual void setStrictChecking (bool enable)
 Set/Get status of strict checking.
virtual bool strictChecking () const
virtual void setExpectedFomType (DtFomType fomType)
 Set/Get expected FOM type.
virtual DtFomType expectedFomType () const
virtual DtFomType lastFomType () const
 Returns the FOM type of the last FOM read.
virtual const DtStringlastError () const
 Get the last error.

Protected Member Functions

virtual DtFedReadStatus processFed (DtlObjPtr fedObj)
 process the FED directive
virtual DtFedReadStatus processFederation (DtlObjPtr fedObj)
 process the federation directive
virtual DtFedReadStatus processVersion (DtlObjPtr fedObj)
 process the FEDVersion directive
virtual DtFedReadStatus processSpaces (DtlObjPtr fedObj)
 process the spaces directive
virtual DtFedReadStatus processSpace (DtlObjPtr fedObj)
 process the space directive
virtual DtFedReadStatus processDimension (DtlObjPtr fedObj, const char *space)
 process the dimension directive
virtual DtFedReadStatus processObjects (DtlObjPtr fedObj)
 process the objects directive
virtual DtFedReadStatus processObjClass (DtlObjPtr fedObj, const char *parent)
 process the object's class directive
virtual DtFedReadStatus processAttribute (DtlObjPtr fedObj, const char *obj)
 process the object's attribute directive
virtual DtFedReadStatus processInteractions (DtlObjPtr fedObj)
 process the interactions directive
virtual DtFedReadStatus processIntClass (DtlObjPtr fedObj, const char *parent)
 process the interaction's class directive
virtual DtFedReadStatus processParameter (DtlObjPtr fedObj, const char *inter)
 process the interaction's parameter directive
- Protected Member Functions inherited from DtFedReader
virtual DtFomType checkFomType (const char *fedFileName, void *fedFilePtr) const
 Get the FOM Type.

Protected Attributes

DtFedTargetmyFedTarget
- Protected Attributes inherited from DtFedReader
DtFedTargetmyFedTarget
DtFedReadermyChildReader
bool myStrictChecking
bool myDontParseSwitchTable
DtFomType myExpectedFomType
 When set, the FOM must conform to this type.
DtFomType myLastFomType
 The type of FOM format that was last read.
DtString myLastError
 Description of last encountered error.

Private Member Functions

 DtMtlFedReader (const DtMtlFedReader &)
 Copy constructor and Assignment operator - Unimplemented.
DtMtlFedReaderoperator= (const DtMtlFedReader &)

Additional Inherited Members

- Static Protected Member Functions inherited from DtFedReader
static bool readFileIntoBuffer (FILE *fileHandle, char **fileBuffer, unsigned int *fileSize)
 Read the file from the FILE* into the buffer.

Detailed Description

Instances of DtMtlFedReader are used to read a FED file, and fill in a DtFedTarget with the information read.

Constructor & Destructor Documentation

DtMtlFedReader::DtMtlFedReader ( )

Constructor.

virtual DtMtlFedReader::~DtMtlFedReader ( )
virtual

Destructor.

DtMtlFedReader::DtMtlFedReader ( const DtMtlFedReader )
private

Copy constructor and Assignment operator - Unimplemented.

Member Function Documentation

DtMtlFedReader& DtMtlFedReader::operator= ( const DtMtlFedReader )
private
virtual DtFedReadStatus DtMtlFedReader::processAttribute ( DtlObjPtr  fedObj,
const char *  obj 
)
protectedvirtual

process the object's attribute directive

virtual DtFedReadStatus DtMtlFedReader::processDimension ( DtlObjPtr  fedObj,
const char *  space 
)
protectedvirtual

process the dimension directive

virtual DtFedReadStatus DtMtlFedReader::processFed ( DtlObjPtr  fedObj)
protectedvirtual

process the FED directive

virtual DtFedReadStatus DtMtlFedReader::processFederation ( DtlObjPtr  fedObj)
protectedvirtual

process the federation directive

virtual DtFedReadStatus DtMtlFedReader::processIntClass ( DtlObjPtr  fedObj,
const char *  parent 
)
protectedvirtual

process the interaction's class directive

virtual DtFedReadStatus DtMtlFedReader::processInteractions ( DtlObjPtr  fedObj)
protectedvirtual

process the interactions directive

virtual DtFedReadStatus DtMtlFedReader::processObjClass ( DtlObjPtr  fedObj,
const char *  parent 
)
protectedvirtual

process the object's class directive

virtual DtFedReadStatus DtMtlFedReader::processObjects ( DtlObjPtr  fedObj)
protectedvirtual

process the objects directive

virtual DtFedReadStatus DtMtlFedReader::processParameter ( DtlObjPtr  fedObj,
const char *  inter 
)
protectedvirtual

process the interaction's parameter directive

virtual DtFedReadStatus DtMtlFedReader::processSpace ( DtlObjPtr  fedObj)
protectedvirtual

process the space directive

virtual DtFedReadStatus DtMtlFedReader::processSpaces ( DtlObjPtr  fedObj)
protectedvirtual

process the spaces directive

virtual DtFedReadStatus DtMtlFedReader::processVersion ( DtlObjPtr  fedObj)
protectedvirtual

process the FEDVersion directive

virtual DtFedReadStatus DtMtlFedReader::readFedFilePtr ( FILE *  filePointer,
DtFedTarget fedTarget,
DtFilename  fedFileName,
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. Strict checking requires strict adherence to format and content

Reimplemented from DtFedReader.

Member Data Documentation

DtFedTarget* DtMtlFedReader::myFedTarget
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)