VR-Link API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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, unsigned int strictCheckingMask=DtFedReadStrictDisabled, 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, unsigned int strictCheckingMask=DtFedReadStrictDisabled, bool useDTD=false, bool dontParseSwitches=false)
 Read the FED file fedFileName, setting values to fedTarget.
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
virtual unsigned int setStrictChecking (unsigned int checkMask)
 Set status of strict checking.
virtual bool strictChecking (unsigned int checkMask) const
 Returns bool: strictChecking enabled for types of checks provided.
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.
char * takeCurrFddData ()

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
void appendErrorLine (xmlNode *node, DtString &output) const

Protected Attributes

DtFedTargetmyFedTarget
- Protected Attributes inherited from DtFedReader
DtFedTargetmyFedTarget
DtFedReadermyChildReader
unsigned int 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 Public Member Functions inherited from DtFedReader
static DtFomType checkFomType (const char *fedFileName, void *fedFilePtr)
 Get the FOM Type.
static FILE * openFedFile (const char *fileName, bool isBinary=false)
 Open file from name and return FILE*.
static bool readFileIntoBuffer (FILE *fileHandle, char **fileBuffer, unsigned int *fileSize)
 Read the file from the FILE* into the buffer.
- Public Attributes inherited from DtFedReader
char * myCurrFddBuffer
 Buffer containing the most recently read FDD file.
unsigned int myCurrFddBufferSize
 Size of the buffer for the most recently read FDD file.

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,
unsigned int  strictCheckingMask = DtFedReadStrictDisabled,
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

Implements DtFedReader.

Member Data Documentation

DtFedTarget* DtMtlFedReader::myFedTarget
protected

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

Document ID: Generated on Thu Feb 22 04:26:36 EST 2018 from SVN revision 186468
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)