Public Member Functions | Private Attributes
linfile::File Class Reference

#include <File.h>

List of all members.

Public Member Functions

void CloseFile ()
 File (std::string, bool bOut=true, bool bAppend=false)
char * GetNextCommentLine ()
double GetNextDouble ()
std::vector< double > GetNextDoubleVector ()
int GetNextInt ()
std::vector< int > GetNextIntVector ()
char * GetNextWord ()
bool Invalid ()
void RestartReading ()
void WriteDouble (const double dValue)
void WriteDoubleLimLength (const double dValue, const int nDigits=1)
void WriteInt (const int nValue)
void WriteIntAsHex (int nValue)
void WriteLine (const char *stLine)
void WriteSingleDouble (const double dValue)
void WriteSingleInt (int nValue)
void WriteSingleIntAsHex (int nValue)
void WriteVector (std::vector< int > viData)
void WriteVector (std::vector< double > vdData)
 ~File (void)

Private Attributes

std::fstream m_file
char * nextElem

Detailed Description

Definition at line 30 of file File.h.


Constructor & Destructor Documentation

linfile::File::File ( std::string  filename,
bool  bOut = true,
bool  bAppend = false 
)

Definition at line 38 of file File.cpp.

Definition at line 31 of file File.cpp.


Member Function Documentation

void linfile::File::CloseFile ( ) [inline]

Definition at line 53 of file File.h.

Definition at line 77 of file File.cpp.

Definition at line 53 of file File.cpp.

std::vector< double > linfile::File::GetNextDoubleVector ( )

Definition at line 98 of file File.cpp.

Definition at line 65 of file File.cpp.

std::vector< int > linfile::File::GetNextIntVector ( )

Definition at line 89 of file File.cpp.

Definition at line 83 of file File.cpp.

bool linfile::File::Invalid ( ) [inline]

Definition at line 52 of file File.h.

void linfile::File::RestartReading ( ) [inline]

Definition at line 36 of file File.h.

void linfile::File::WriteDouble ( const double  dValue)

Definition at line 135 of file File.cpp.

void linfile::File::WriteDoubleLimLength ( const double  dValue,
const int  nDigits = 1 
)

Definition at line 149 of file File.cpp.

void linfile::File::WriteInt ( const int  nValue)

Definition at line 107 of file File.cpp.

void linfile::File::WriteIntAsHex ( int  nValue)

Definition at line 121 of file File.cpp.

void linfile::File::WriteLine ( const char *  stLine)

Definition at line 156 of file File.cpp.

void linfile::File::WriteSingleDouble ( const double  dValue)

Definition at line 142 of file File.cpp.

void linfile::File::WriteSingleInt ( int  nValue)

Definition at line 114 of file File.cpp.

void linfile::File::WriteSingleIntAsHex ( int  nValue)

Definition at line 128 of file File.cpp.

void linfile::File::WriteVector ( std::vector< int >  viData)

Definition at line 162 of file File.cpp.

void linfile::File::WriteVector ( std::vector< double >  vdData)

Definition at line 173 of file File.cpp.


Member Data Documentation

std::fstream linfile::File::m_file [private]

Definition at line 55 of file File.h.

char* linfile::File::nextElem [private]

Definition at line 56 of file File.h.


The documentation for this class was generated from the following files:


cognitive_perception
Author(s): Ulrich F Klank
autogenerated on Mon Oct 6 2014 10:48:46