Public Member Functions | |
MXAFILEWRITER_CLASS_NAME (const std::string &filename) | |
virtual | ~MXAFILEWRITER_CLASS_NAME () |
bool | initWriter () |
Initializes our stream object and opens the file. | |
bool | write (char *data, int64 numBytes) |
Writes a number of bytes from the underlying stream. | |
template<typename T> | |
bool | writeValue (T *value) |
Writes a single value to a file with no byte swapping performed. | |
template<typename T> | |
bool | writeArray (T *front, int64 numElements) |
Writes a "C" array into the file. | |
void | setFilePointer64 (int64 position) |
Sets the filepointer of the underlying stream. | |
int64 | getFilePointer64 () |
Returns the current position of the file pointer. | |
MXAFILEWRITER_CLASS_NAME (const std::string &filename) | |
virtual | ~MXAFILEWRITER_CLASS_NAME () |
bool | initWriter () |
Initializes our stream object and opens the file. | |
bool | write (char *data, int64 numBytes) |
Reads a number of bytes from the underlying stream. | |
template<typename T> | |
bool | writeValue (T *value) |
Writes a single value to a file with no byte swapping performed. | |
template<typename T> | |
bool | writeArray (T *front, int64 numElements) |
Writes a "C" array into the file. | |
void | setFilePointer64 (int64 position) |
Sets the filepointer of the underlying stream. | |
int64 | getFilePointer64 () |
Returns the current position of the file pointer. | |
Private Attributes | |
std::string | _filename |
WRITER64_OUTPUT_STREAM | _outStream |
std::vector< char > | _buffer |
std::vector< char > | _buffer |
MXAFILEWRITER_CLASS_NAME::MXAFILEWRITER_CLASS_NAME | ( | const std::string & | filename | ) | [explicit] |
MXAFILEWRITER_CLASS_NAME::~MXAFILEWRITER_CLASS_NAME | ( | ) | [virtual] |
MXAFILEWRITER_CLASS_NAME::MXAFILEWRITER_CLASS_NAME | ( | const std::string & | filename | ) | [explicit] |
virtual MXAFILEWRITER_CLASS_NAME::~MXAFILEWRITER_CLASS_NAME | ( | ) | [virtual] |
bool MXAFILEWRITER_CLASS_NAME::initWriter | ( | ) |
Initializes our stream object and opens the file.
bool MXAFILEWRITER_CLASS_NAME::write | ( | char * | data, | |
int64 | numBytes | |||
) | [inline] |
Writes a number of bytes from the underlying stream.
data | The char pointer to read the data into | |
numBytes | The number of bytes to read |
bool MXAFILEWRITER_CLASS_NAME::writeValue | ( | T * | value | ) | [inline] |
Writes a single value to a file with no byte swapping performed.
value | The value to write to the file |
bool MXAFILEWRITER_CLASS_NAME::writeArray | ( | T * | front, | |
int64 | numElements | |||
) | [inline] |
Writes a "C" array into the file.
front | pointer to the location in the array to start writing | |
numElements | number of elements of the array to write |
void MXAFILEWRITER_CLASS_NAME::setFilePointer64 | ( | int64 | position | ) | [inline] |
Sets the filepointer of the underlying stream.
position | The position to set the file pointer to |
int64 MXAFILEWRITER_CLASS_NAME::getFilePointer64 | ( | ) | [inline] |
Returns the current position of the file pointer.
bool MXAFILEWRITER_CLASS_NAME::initWriter | ( | ) |
Initializes our stream object and opens the file.
bool MXAFILEWRITER_CLASS_NAME::write | ( | char * | data, | |
int64 | numBytes | |||
) | [inline] |
Reads a number of bytes from the underlying stream.
data | The char pointer to read the data into | |
numBytes | The number of bytes to read |
bool MXAFILEWRITER_CLASS_NAME::writeValue | ( | T * | value | ) | [inline] |
Writes a single value to a file with no byte swapping performed.
value | The value to write to the file |
bool MXAFILEWRITER_CLASS_NAME::writeArray | ( | T * | front, | |
int64 | numElements | |||
) | [inline] |
Writes a "C" array into the file.
front | pointer to the location in the array to start writing | |
numElements | number of elements of the array to write |
void MXAFILEWRITER_CLASS_NAME::setFilePointer64 | ( | int64 | position | ) | [inline] |
Sets the filepointer of the underlying stream.
position | The position to set the file pointer to |
int64 MXAFILEWRITER_CLASS_NAME::getFilePointer64 | ( | ) | [inline] |
Returns the current position of the file pointer.
std::string MXAFILEWRITER_CLASS_NAME::_filename [private] |
WRITER64_OUTPUT_STREAM MXAFILEWRITER_CLASS_NAME::_outStream [private] |
std::vector<char> MXAFILEWRITER_CLASS_NAME::_buffer [private] |
std::vector<char> MXAFILEWRITER_CLASS_NAME::_buffer [private] |