MXAFILEWRITER_CLASS_NAME Class Reference

Collaboration diagram for MXAFILEWRITER_CLASS_NAME:

Collaboration graph
[legend]
List of all members.

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

Constructor & Destructor Documentation

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]


Member Function Documentation

bool MXAFILEWRITER_CLASS_NAME::initWriter (  ) 

Initializes our stream object and opens the file.

Returns:
True on success. False on any failure

bool MXAFILEWRITER_CLASS_NAME::write ( char *  data,
int64  numBytes 
) [inline]

Writes a number of bytes from the underlying stream.

Parameters:
data The char pointer to read the data into
numBytes The number of bytes to read

template<typename T>
bool MXAFILEWRITER_CLASS_NAME::writeValue ( T *  value  )  [inline]

Writes a single value to a file with no byte swapping performed.

Parameters:
value The value to write to the file

template<typename T>
bool MXAFILEWRITER_CLASS_NAME::writeArray ( T *  front,
int64  numElements 
) [inline]

Writes a "C" array into the file.

Parameters:
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.

Parameters:
position The position to set the file pointer to

int64 MXAFILEWRITER_CLASS_NAME::getFilePointer64 (  )  [inline]

Returns the current position of the file pointer.

Returns:
the Current position of the file pointer

bool MXAFILEWRITER_CLASS_NAME::initWriter (  ) 

Initializes our stream object and opens the file.

Returns:
True on success. False on any failure

bool MXAFILEWRITER_CLASS_NAME::write ( char *  data,
int64  numBytes 
) [inline]

Reads a number of bytes from the underlying stream.

Parameters:
data The char pointer to read the data into
numBytes The number of bytes to read

template<typename T>
bool MXAFILEWRITER_CLASS_NAME::writeValue ( T *  value  )  [inline]

Writes a single value to a file with no byte swapping performed.

Parameters:
value The value to write to the file

template<typename T>
bool MXAFILEWRITER_CLASS_NAME::writeArray ( T *  front,
int64  numElements 
) [inline]

Writes a "C" array into the file.

Parameters:
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.

Parameters:
position The position to set the file pointer to

int64 MXAFILEWRITER_CLASS_NAME::getFilePointer64 (  )  [inline]

Returns the current position of the file pointer.

Returns:
the Current position of the file pointer


Member Data Documentation

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]


The documentation for this class was generated from the following files:
Generated on Tue Nov 17 18:43:15 2009 for MXADataModel by  doxygen 1.5.2