#include <LineFile.h>
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) |
LineFile & | operator<< (const char *s) |
LineFile & | operator<< (const string &s) |
LineFile & | operator<< (const vector< string > &v) |
LineFile & | operator>> (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 |
Definition at line 36 of file LineFile.h.
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.
void LineFile::Close | ( | ) |
Definition at line 97 of file LineFile.cpp.
void LineFile::DiscardLine | ( | ) |
Definition at line 168 of file LineFile.cpp.
void LineFile::Dump | ( | const vector< string > & | v | ) |
Definition at line 155 of file LineFile.cpp.
bool LineFile::Eof | ( | ) |
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
filename | file to open |
mode | opening mode |
DException | if 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.
Definition at line 118 of file LineFile.h.
LineFile & LineFile::operator>> | ( | string & | s | ) |
Definition at line 132 of file LineFile.cpp.
fstream DUtils::LineFile::m_f [protected] |
Definition at line 140 of file LineFile.h.
FILE_MODES DUtils::LineFile::m_mode [protected] |
Definition at line 139 of file LineFile.h.
string DUtils::LineFile::m_next_line [protected] |
Definition at line 141 of file LineFile.h.