Public Types | |
typedef Traits::parameter_type | parameter_type |
Public Member Functions | |
Reader (const char *fileName) | |
size_t | numRecords () const |
T | getRecord () |
void | exportCSV (const char *outputFileName) |
void | exportCSV (std::ostream &os) |
void | close () |
Protected Attributes | |
std::ifstream | file |
size_t | recordLength |
size_t | recordCount |
char * | buffer |
barrett::log::Reader< T, Traits >::Reader | ( | const char * | fileName | ) |
Constructor and Destructors for Reader.
void barrett::log::Reader< T, Traits >::close | ( | ) | [inline] |
close Method destroys file being written to.
void barrett::log::Reader< T, Traits >::exportCSV | ( | const char * | outputFileName | ) | [inline] |
exportCSV method writes binary data to comma separated text file.
void barrett::log::Reader< T, Traits >::exportCSV | ( | std::ostream & | os | ) |
exportCSV method writes binary data to comma separated text file.
T barrett::log::Reader< T, Traits >::getRecord | ( | ) | [inline] |
getRecord Method returns the line of the file currently being processed.
size_t barrett::log::Reader< T, Traits >::numRecords | ( | ) | const [inline] |
numRecords Method returns the number of lines in the file being processed.