VR-Link API Documentation for HLA Evolved
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Member Functions

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:

List of all members.

Public Member Functions

 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 DtFedReadStatus readFedFilePtr (FILE *fedFilePtr, DtFedTarget *fedTarget, DtFilename filename, bool strictCheckingEnabled=false, bool useDTD=false, bool dontParseSwitches=false)
 Read the FED file from the FILE*, 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 DtFomType checkFomType (const char *fedFileName, void *fedFilePtr) const
 Get the FOM Type.

Static Protected Member Functions

static bool readFileIntoBuffer (FILE *fileHandle, char **fileBuffer, unsigned int *fileSize)
 Read the file from the FILE* into the buffer.

Protected Attributes

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

 DtFedReader (const DtFedReader &)
 Copy constructor and Assignment operator - Unimplemented.
DtFedReaderoperator= (const DtFedReader &)

Detailed Description

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


Constructor & Destructor Documentation

Constructor.

virtual DtFedReader::~DtFedReader ( ) [virtual]

Destructor.

DtFedReader::DtFedReader ( const DtFedReader ) [private]

Copy constructor and Assignment operator - Unimplemented.


Member Function Documentation

virtual DtFomType DtFedReader::checkFomType ( const char *  fedFileName,
void *  fedFilePtr 
) const [protected, virtual]

Get the FOM Type.

virtual DtFomType DtFedReader::expectedFomType ( ) const [virtual]
virtual const DtString& DtFedReader::lastError ( ) const [virtual]

Get the last error.

virtual DtFomType DtFedReader::lastFomType ( ) const [virtual]

Returns the FOM type of the last FOM read.

virtual FILE* DtFedReader::openFedFile ( const char *  fileName,
bool  isBinary = false 
) [virtual]

get the a file handle to the FED File for reading in text or binary mode

DtFedReader& DtFedReader::operator= ( const DtFedReader ) [private]
virtual DtFedReadStatus DtFedReader::readFed ( const char *  fedFileName,
DtFedTarget fedTarget,
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.

virtual DtFedReadStatus DtFedReader::readFedFilePtr ( FILE *  fedFilePtr,
DtFedTarget fedTarget,
DtFilename  filename,
bool  strictCheckingEnabled = false,
bool  useDTD = false,
bool  dontParseSwitches = false 
) [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.

Reimplemented in DtXmlFedReader, DtXmlFedReader1516e, and DtMtlFedReader.

static bool DtFedReader::readFileIntoBuffer ( FILE *  fileHandle,
char **  fileBuffer,
unsigned int *  fileSize 
) [static, protected]

Read the file from the FILE* into the buffer.

virtual void DtFedReader::setExpectedFomType ( DtFomType  fomType) [virtual]

Set/Get expected FOM type.

virtual void DtFedReader::setStrictChecking ( bool  enable) [virtual]

Set/Get status of strict checking.

virtual bool DtFedReader::strictChecking ( ) const [virtual]

Member Data Documentation

When set, the FOM must conform to this type.

Description of last encountered error.

The type of FOM format that was last read.


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

Document ID: Generated on Mon May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)