|
Open PaperOpt
|
#include <XMLParser.h>


Public Member Functions | |
| BinaryFile (const string &rFilename, int offset, bool isBigEndian) | |
| ~BinaryFile () | |
| double | readDouble (void) |
| float | readFloat (void) |
| int | readInt (void) |
| bool | eof () |
Class representing a binary file, data will be read starting at an offset position, the class is also responsible for flipping the bytes of variables if the file uses a different endian than the computer.
| BinaryFile::BinaryFile | ( | const string & | rFilename, |
| int | offset, | ||
| bool | isBigEndian | ||
| ) |
Constructor. Will read from the file at gBinaryDirectory/rFilename.
| rFilename | the name/relative path of the file as read from XML. |
| offset | specifies the byte where reading should start. |
| isBigEndian | specifies whether the file is stored in bigendian or littleendian format. If the machines endian differs from the file's, this class will swap the bytes. |
| BinaryFile::~BinaryFile | ( | ) |
| bool BinaryFile::eof | ( | ) | [virtual] |
Implements IO::File.
| double BinaryFile::readDouble | ( | void | ) | [virtual] |
| float BinaryFile::readFloat | ( | void | ) | [virtual] |
Implements IO::File.
| int BinaryFile::readInt | ( | void | ) | [virtual] |
Implements IO::File.