Generated on: Thu Mar 29 07:46:58 PDT 2012 for custom file set | ||
|
||
#include <filelinereader.h>
Public Member Functions | |
FileLineReader (const char *const filename) | |
Creates a file line reader object that will read the file 'filename' line by line. | |
~FileLineReader () | |
void | set_line_callback (Callback1< char * > *const callback) |
Sets the line callback and takes ownership. | |
void | Reload () |
Reloads the file line by line. | |
bool | loaded_successfully () const |
Indicates if the file was loaded successfully. |
Each line will be cleaned with respect to termination ('
' and ''). The line callback will be called in sequence on each line.
Definition at line 31 of file filelinereader.h.
operations_research::FileLineReader::FileLineReader | ( | const char *const | filename | ) | [explicit] |
Creates a file line reader object that will read the file 'filename' line by line.
Definition at line 25 of file filelinereader.cc.
operations_research::FileLineReader::~FileLineReader | ( | ) |
Definition at line 28 of file filelinereader.cc.
void operations_research::FileLineReader::set_line_callback | ( | Callback1< char * > *const | callback | ) |
void operations_research::FileLineReader::Reload | ( | ) |
bool operations_research::FileLineReader::loaded_successfully | ( | ) | const |