Public Member Functions | Protected Member Functions | Protected Attributes
DUtils::LineFile Class Reference

#include <LineFile.h>

List of all members.

Public Member Functions

void Close ()
void DiscardLine ()
void Dump (const vector< string > &v)
bool Eof ()
 LineFile (void)
 LineFile (const char *filename, const FILE_MODES mode)
 LineFile (const string &filename, const FILE_MODES mode)
void OpenForAppending (const char *filename)
void OpenForAppending (const string &filename)
void OpenForReading (const char *filename)
void OpenForReading (const string &filename)
void OpenForWriting (const char *filename)
void OpenForWriting (const string &filename)
LineFileoperator<< (const char *s)
LineFileoperator<< (const string &s)
LineFileoperator<< (const vector< string > &v)
LineFileoperator>> (string &s)
 ~LineFile (void)

Protected Member Functions

void Init (const char *filename, const FILE_MODES mode)

Protected Attributes

fstream m_f
FILE_MODES m_mode
string m_next_line

Detailed Description

Definition at line 36 of file LineFile.h.


Constructor & Destructor Documentation

LineFile::LineFile ( void  )

Definition at line 33 of file LineFile.cpp.

LineFile::~LineFile ( void  )

Definition at line 37 of file LineFile.cpp.

LineFile::LineFile ( const char *  filename,
const FILE_MODES  mode 
)

Definition at line 42 of file LineFile.cpp.

LineFile::LineFile ( const string &  filename,
const FILE_MODES  mode 
)

Definition at line 47 of file LineFile.cpp.


Member Function Documentation

void LineFile::Close ( )

Definition at line 97 of file LineFile.cpp.

Definition at line 168 of file LineFile.cpp.

void LineFile::Dump ( const vector< string > &  v)

Definition at line 155 of file LineFile.cpp.

Definition at line 102 of file LineFile.cpp.

void LineFile::Init ( const char *  filename,
const FILE_MODES  mode 
) [protected]

Initializes the object by opening a file

Parameters:
filenamefile to open
modeopening mode
Exceptions:
DExceptionif cannot open the file

Definition at line 52 of file LineFile.cpp.

void LineFile::OpenForAppending ( const char *  filename)

Definition at line 87 of file LineFile.cpp.

void DUtils::LineFile::OpenForAppending ( const string &  filename) [inline]

Definition at line 80 of file LineFile.h.

void LineFile::OpenForReading ( const char *  filename)

Definition at line 67 of file LineFile.cpp.

void DUtils::LineFile::OpenForReading ( const string &  filename) [inline]

Definition at line 60 of file LineFile.h.

void LineFile::OpenForWriting ( const char *  filename)

Definition at line 77 of file LineFile.cpp.

void DUtils::LineFile::OpenForWriting ( const string &  filename) [inline]

Definition at line 70 of file LineFile.h.

LineFile & LineFile::operator<< ( const char *  s)

Definition at line 120 of file LineFile.cpp.

LineFile& DUtils::LineFile::operator<< ( const string &  s) [inline]

Definition at line 101 of file LineFile.h.

LineFile& DUtils::LineFile::operator<< ( const vector< string > &  v) [inline]

Definition at line 118 of file LineFile.h.

LineFile & LineFile::operator>> ( string &  s)

Definition at line 132 of file LineFile.cpp.


Member Data Documentation

fstream DUtils::LineFile::m_f [protected]

Definition at line 140 of file LineFile.h.

Definition at line 139 of file LineFile.h.

string DUtils::LineFile::m_next_line [protected]

Definition at line 141 of file LineFile.h.


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


re_vision
Author(s): Dorian Galvez-Lopez
autogenerated on Sun Jan 5 2014 11:34:29