Whiteboard
An interface and tools for visualizing large and complex datasets
|
#include <FileParser.h>
Public Member Functions | |
FlatFileParser () | |
FlatFileParser (const string &fileName) | |
virtual | ~FlatFileParser () |
void | Open (const string &fileName) |
bool | Exists (const string &fileName) |
bool | ParseLine () |
bool | IsEndOfFile () |
bool | GetLine (string &line) |
const string & | Line () const |
void | LoadVector (string &filename, vector< string > &elements) |
void | LoadSet (string &filename, set< string > &elements) |
Public Member Functions inherited from StringParser | |
StringParser () | |
virtual | ~StringParser () |
void | SetLine (const string &line) |
void | SetLine (const string &line, const string &delimiter) |
int | GetItemCount () |
bool | IsString (int index) |
bool | IsInt (int index) |
bool | IsFloat (int index) |
const string & | AsString (int index) |
char | AsChar (int index) |
int | AsInt (int index) |
double | AsFloat (int index) |
Private Attributes | |
CMAsciiReadFileStream | m_file |
string | m_line |
FlatFileParser::FlatFileParser | ( | ) |
FlatFileParser::FlatFileParser | ( | const string & | fileName | ) |
|
virtual |
bool FlatFileParser::Exists | ( | const string & | fileName | ) |
bool FlatFileParser::GetLine | ( | string & | line | ) |
bool FlatFileParser::IsEndOfFile | ( | ) |
|
inline |
void FlatFileParser::LoadSet | ( | string & | filename, |
set< string > & | elements | ||
) |
void FlatFileParser::LoadVector | ( | string & | filename, |
vector< string > & | elements | ||
) |
void FlatFileParser::Open | ( | const string & | fileName | ) |
bool FlatFileParser::ParseLine | ( | ) |
|
private |
|
private |