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

#include <FileParser.h>

Inheritance diagram for StringParser:
FlatFileParser

Public Member Functions

 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
 
vector< string > m_items
 

Constructor & Destructor Documentation

StringParser::StringParser ( )
StringParser::~StringParser ( )
virtual

Member Function Documentation

char StringParser::AsChar ( int  index)
double StringParser::AsFloat ( int  index)
int StringParser::AsInt ( int  index)
const string & StringParser::AsString ( int  index)
int StringParser::GetItemCount ( )
bool StringParser::IsFloat ( int  index)
bool StringParser::IsInt ( int  index)
bool StringParser::IsString ( int  index)
void StringParser::SetLine ( const string &  line)
void StringParser::SetLine ( const string &  line,
const string &  delimiter 
)

Member Data Documentation

CMAsciiReadFileStream StringParser::m_file
private
vector<string> StringParser::m_items
private

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