Whiteboard
An interface and tools for visualizing large and complex datasets
Public Member Functions | Private Attributes | List of all members
FlatFileParser Class Reference

#include <FileParser.h>

Inheritance diagram for FlatFileParser:
StringParser

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
 

Constructor & Destructor Documentation

FlatFileParser::FlatFileParser ( )
FlatFileParser::FlatFileParser ( const string &  fileName)
FlatFileParser::~FlatFileParser ( )
virtual

Member Function Documentation

bool FlatFileParser::Exists ( const string &  fileName)
bool FlatFileParser::GetLine ( string &  line)
bool FlatFileParser::IsEndOfFile ( )
const string& FlatFileParser::Line ( ) const
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 ( )

Member Data Documentation

CMAsciiReadFileStream FlatFileParser::m_file
private
string FlatFileParser::m_line
private

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