FileWriter Class Reference

The file output class. More...

#include <filewriter.h>

Inheritance diagram for FileWriter:

CoreIOWriter

List of all members.

Public Member Functions

 FileWriter ()
 The constructor.
 ~FileWriter ()
 The destructor.
CrissCross::Errors Open (const char *_file, FileWriteMode _writeMode=CC_FILE_CREATE, LineEndingType _lnEnding=CC_LN_NATIVE)
 Opens the provided file.
CrissCross::Errors Close ()
 Closes the file.

Protected Attributes

const char * m_filePath
 The path to the file being written.


Detailed Description

The file output class.

Inherits CoreIO, so functions like CoreIO::Write and CoreIO::WriteLine are accessible to the programmer.


Constructor & Destructor Documentation

~FileWriter (  ) 

The destructor.

Flushes the output buffer, closes the file, and deallocates memory used by FileWriter.


Member Function Documentation

CrissCross::Errors Close (  ) 

Closes the file.

Flushes the output buffer, closes the file, and deallocates memory used by FileWriter.

Returns:
Standard CrissCross::Errors values.

CrissCross::Errors Open ( const char *  _file,
FileWriteMode  _writeMode = CC_FILE_CREATE,
LineEndingType  _lnEnding = CC_LN_NATIVE 
)

Opens the provided file.

Opens the file for reading.

Parameters:
_file The path of the file to be read.
_writeMode The mode with which to open the file.
_lnEnding The line ending type to use.
Returns:
Standard CrissCross::Errors values.


Generated on Sun Feb 8 11:10:00 2009 for CrissCross by  doxygen 1.5.8