Libbarrett  1.2.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Defines
Public Types | Public Member Functions | Protected Attributes
barrett::log::Reader< T, Traits > Class Template Reference

List of all members.

Public Types

typedef Traits::parameter_type parameter_type

Public Member Functions

 Reader (const char *fileName)
size_t numRecords () const
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

template<typename T, typename Traits = Traits<T>>
class barrett::log::Reader< T, Traits >


Constructor & Destructor Documentation

template<typename T , typename Traits >
barrett::log::Reader< T, Traits >::Reader ( const char *  fileName)

Constructor and Destructors for Reader.


Member Function Documentation

template<typename T , typename Traits >
void barrett::log::Reader< T, Traits >::close ( ) [inline]

close Method destroys file being written to.

template<typename T , typename Traits >
void barrett::log::Reader< T, Traits >::exportCSV ( const char *  outputFileName) [inline]

exportCSV method writes binary data to comma separated text file.

template<typename T , typename Traits >
void barrett::log::Reader< T, Traits >::exportCSV ( std::ostream &  os)

exportCSV method writes binary data to comma separated text file.

template<typename T , typename Traits >
T barrett::log::Reader< T, Traits >::getRecord ( ) [inline]

getRecord Method returns the line of the file currently being processed.

template<typename T , typename Traits >
size_t barrett::log::Reader< T, Traits >::numRecords ( ) const [inline]

numRecords Method returns the number of lines in the file being processed.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Defines