TextWriter Class Reference

Helper for writing text fo a file. More...

List of all members.

Public Member Functions

success_t Close ()
 Explicitly closes the file.
success_t Close ()
 Explicitly closes the file.
success_t Open (const char *fname)
 Opens a file by name (initializer).
success_t Open (const char *fname)
 Opens a file by name (initializer).
success_t Printf (const char *format,...)
success_t Printf (const char *format,...)
 TextWriter ()
 Creates an uninitialized text writer (you must initialize it).
 TextWriter ()
 Creates an uninitialized text writer (you must initialize it).
success_t Write (double d)
success_t Write (unsigned long long i)
success_t Write (long long i)
success_t Write (unsigned long i)
success_t Write (long i)
success_t Write (unsigned int i)
success_t Write (int i)
success_t Write (const char *s)
success_t Write (double d)
success_t Write (unsigned long long i)
success_t Write (long long i)
success_t Write (unsigned long i)
success_t Write (long i)
success_t Write (unsigned int i)
success_t Write (int i)
success_t Write (const char *s)
 ~TextWriter ()
 Automatically closes the file when it gets out of scope; for best error handling, you should call Close first.
 ~TextWriter ()
 Automatically closes the file when it gets out of scope; for best error handling, you should call Close first.

Detailed Description

Helper for writing text fo a file.

Definition at line 338 of file textfile.h.


Constructor & Destructor Documentation

TextWriter::TextWriter (  )  [inline]

Creates an uninitialized text writer (you must initialize it).

Definition at line 348 of file textfile.h.

TextWriter::~TextWriter (  )  [inline]

Automatically closes the file when it gets out of scope; for best error handling, you should call Close first.

If you do not explicitly close the file beforehand, this will abort the program on a write error.

Definition at line 359 of file textfile.h.

TextWriter::TextWriter (  )  [inline]

Creates an uninitialized text writer (you must initialize it).

Definition at line 348 of file textfile.h.

TextWriter::~TextWriter (  )  [inline]

Automatically closes the file when it gets out of scope; for best error handling, you should call Close first.

If you do not explicitly close the file beforehand, this will abort the program on a write error.

Definition at line 359 of file textfile.h.


Member Function Documentation

success_t TextWriter::Close (  )  [inline]

Explicitly closes the file.

Definition at line 379 of file textfile.h.

success_t TextWriter::Close (  )  [inline]

Explicitly closes the file.

Definition at line 379 of file textfile.h.

Referenced by Dataset::WriteArff(), and Dataset::WriteCsv().

success_t TextWriter::Open ( const char *  fname  )  [inline]

Opens a file by name (initializer).

Returns:
success or failure

Definition at line 371 of file textfile.h.

success_t TextWriter::Open ( const char *  fname  )  [inline]

Opens a file by name (initializer).

Returns:
success or failure

Definition at line 371 of file textfile.h.

Referenced by DiscreteHMM::SaveProfile(), Dataset::WriteArff(), and Dataset::WriteCsv().


The documentation for this class was generated from the following files:
Generated on Mon Jan 24 12:04:40 2011 for FASTlib by  doxygen 1.6.3