Instances of DtFedReader are used to read a FED file, and fill in a DtFedTarget with the information read.
More...
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 DtString & | lastError () 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.
|
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
| DtFedReader::DtFedReader |
( |
| ) |
|
| virtual DtFedReader::~DtFedReader |
( |
| ) |
|
|
virtual |
Copy constructor and Assignment operator - Unimplemented.
Member Function Documentation
| virtual DtFomType DtFedReader::checkFomType |
( |
const char * |
fedFileName, |
|
|
void * |
fedFilePtr |
|
) |
| const |
|
protectedvirtual |
| virtual DtFomType DtFedReader::expectedFomType |
( |
| ) |
const |
|
virtual |
| virtual const DtString& DtFedReader::lastError |
( |
| ) |
const |
|
virtual |
| 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
| 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 |
| static bool DtFedReader::readFileIntoBuffer |
( |
FILE * |
fileHandle, |
|
|
char ** |
fileBuffer, |
|
|
unsigned int * |
fileSize |
|
) |
| |
|
staticprotected |
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
| bool DtFedReader::myDontParseSwitchTable |
|
protected |
When set, the FOM must conform to this type.
Description of last encountered error.
The type of FOM format that was last read.
| bool DtFedReader::myStrictChecking |
|
protected |
The documentation for this class was generated from the following file: