Helper for writing text fo a file. More...
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. | |
Helper for writing text fo a file.
Definition at line 338 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.
| 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.
| 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).
Definition at line 371 of file textfile.h.
| success_t TextWriter::Open | ( | const char * | fname | ) | [inline] |
Opens a file by name (initializer).
Definition at line 371 of file textfile.h.
Referenced by DiscreteHMM::SaveProfile(), Dataset::WriteArff(), and Dataset::WriteCsv().
1.6.3