ocFileParser Class Reference

#include <ocImportParser.h>

Collaboration diagram for ocFileParser:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ocFileParser ()
 ~ocFileParser ()
void clearData (void)
bool openFile (string filePath)
bool closeFile (void)
bool isEven (int cnt)
bool getLine (void)
bool parseLine (bool isLabel=false)
void trimQuote (string &tok)
bool hasEvenQuotes (string &tok)
bool checkQuote (string &tok)
bool parse (bool isLabel=false)
int getColCount (void)
void setColCount (int iCount)
ocFileColsgetCols (void)
ocFileParsersetDelim (string in)
ocFileParsersetTrimQuote (bool in)
ocFileParsersetCheckQuote (bool in)
ocFileParsersetLineTokens (string in)
string getLineTokens (void)
 ocFileParser ()
 ~ocFileParser ()
void clearData (void)
bool openFile (string filePath)
bool closeFile (void)
bool isEven (int cnt)
bool getLine (void)
bool parseLine (bool isLabel=false)
void trimQuote (string &tok)
bool hasEvenQuotes (string &tok)
bool checkQuote (string &tok)
bool parse (bool isLabel=false)
int getColCount (void)
void setColCount (int iCount)
ocFileColsgetCols (void)
ocFileParsersetDelim (string in)
ocFileParsersetTrimQuote (bool in)
ocFileParsersetCheckQuote (bool in)
ocFileParsersetLineTokens (string in)
string getLineTokens (void)

Public Attributes

string attrSep

Private Attributes

string cDelim
string cField
int colCount
ocFileCols cols
ifstream inFile
ocString lineTokens
bool bTrimQuote
bool bCheckQuote
bool notDone


Detailed Description

Definition at line 34 of file ocImportParser.h.


Constructor & Destructor Documentation

ocFileParser::ocFileParser (  )  [inline]

Definition at line 49 of file ocImportParser.h.

ocFileParser::~ocFileParser (  )  [inline]

Definition at line 54 of file ocImportParser.h.

ocFileParser::ocFileParser (  )  [inline]

Definition at line 49 of file ocImportParser.h.

ocFileParser::~ocFileParser (  )  [inline]

Definition at line 54 of file ocImportParser.h.


Member Function Documentation

void ocFileParser::clearData ( void   )  [inline]

Definition at line 57 of file ocImportParser.h.

References cols.

Referenced by parse().

bool ocFileParser::openFile ( string  filePath  )  [inline]

bool ocFileParser::closeFile ( void   )  [inline]

Definition at line 67 of file ocImportParser.h.

References cols, and inFile.

bool ocFileParser::isEven ( int  cnt  )  [inline]

Definition at line 78 of file ocImportParser.h.

Referenced by getLine(), and hasEvenQuotes().

bool ocFileParser::getLine ( void   )  [inline]

Definition at line 83 of file ocImportParser.h.

References bCheckQuote, inFile, isEven(), and lineTokens.

Referenced by parseLine().

bool ocFileParser::parseLine ( bool  isLabel = false  )  [inline]

void ocFileParser::trimQuote ( string &  tok  )  [inline]

Definition at line 142 of file ocImportParser.h.

Referenced by parse().

bool ocFileParser::hasEvenQuotes ( string &  tok  )  [inline]

Definition at line 162 of file ocImportParser.h.

References isEven().

Referenced by checkQuote().

bool ocFileParser::checkQuote ( string &  tok  )  [inline]

Definition at line 174 of file ocImportParser.h.

References cDelim, hasEvenQuotes(), lineTokens, and ocString::parse().

Referenced by checkQuote(), and parse().

bool ocFileParser::parse ( bool  isLabel = false  )  [inline]

int ocFileParser::getColCount ( void   )  [inline]

Definition at line 242 of file ocImportParser.h.

References colCount.

Referenced by summer::Agget(), and main().

void ocFileParser::setColCount ( int  iCount  )  [inline]

ocFileCols& ocFileParser::getCols ( void   )  [inline]

ocFileParser& ocFileParser::setDelim ( string  in  )  [inline]

ocFileParser& ocFileParser::setTrimQuote ( bool  in  )  [inline]

Definition at line 259 of file ocImportParser.h.

References bTrimQuote.

ocFileParser& ocFileParser::setCheckQuote ( bool  in  )  [inline]

ocFileParser& ocFileParser::setLineTokens ( string  in  )  [inline]

Definition at line 269 of file ocImportParser.h.

References lineTokens.

Referenced by summer::Agget(), and main().

string ocFileParser::getLineTokens ( void   )  [inline]

void ocFileParser::clearData ( void   )  [inline]

Definition at line 57 of file ocImportParser.h.

References cols.

bool ocFileParser::openFile ( string  filePath  )  [inline]

Definition at line 62 of file ocImportParser.h.

References inFile.

bool ocFileParser::closeFile ( void   )  [inline]

Definition at line 67 of file ocImportParser.h.

References cols, and inFile.

bool ocFileParser::isEven ( int  cnt  )  [inline]

Definition at line 78 of file ocImportParser.h.

bool ocFileParser::getLine ( void   )  [inline]

Definition at line 83 of file ocImportParser.h.

References bCheckQuote, inFile, isEven(), and lineTokens.

bool ocFileParser::parseLine ( bool  isLabel = false  )  [inline]

Definition at line 133 of file ocImportParser.h.

References getLine(), and parse().

void ocFileParser::trimQuote ( string &  tok  )  [inline]

Definition at line 142 of file ocImportParser.h.

bool ocFileParser::hasEvenQuotes ( string &  tok  )  [inline]

Definition at line 162 of file ocImportParser.h.

References isEven().

bool ocFileParser::checkQuote ( string &  tok  )  [inline]

Definition at line 174 of file ocImportParser.h.

References cDelim, checkQuote(), hasEvenQuotes(), lineTokens, and ocString::parse().

bool ocFileParser::parse ( bool  isLabel = false  )  [inline]

int ocFileParser::getColCount ( void   )  [inline]

Definition at line 242 of file ocImportParser.h.

References colCount.

void ocFileParser::setColCount ( int  iCount  )  [inline]

Definition at line 246 of file ocImportParser.h.

References colCount.

ocFileCols& ocFileParser::getCols ( void   )  [inline]

Definition at line 250 of file ocImportParser.h.

References cols.

ocFileParser& ocFileParser::setDelim ( string  in  )  [inline]

Definition at line 254 of file ocImportParser.h.

References cDelim.

ocFileParser& ocFileParser::setTrimQuote ( bool  in  )  [inline]

Definition at line 259 of file ocImportParser.h.

References bTrimQuote.

ocFileParser& ocFileParser::setCheckQuote ( bool  in  )  [inline]

Definition at line 264 of file ocImportParser.h.

References bCheckQuote.

ocFileParser& ocFileParser::setLineTokens ( string  in  )  [inline]

Definition at line 269 of file ocImportParser.h.

References lineTokens.

string ocFileParser::getLineTokens ( void   )  [inline]

Definition at line 274 of file ocImportParser.h.

References lineTokens.


Member Data Documentation

string ocFileParser::cDelim [private]

Definition at line 36 of file ocImportParser.h.

Referenced by checkQuote(), parse(), and setDelim().

string ocFileParser::cField [private]

Definition at line 37 of file ocImportParser.h.

int ocFileParser::colCount [private]

Definition at line 38 of file ocImportParser.h.

Referenced by getColCount(), parse(), and setColCount().

Definition at line 39 of file ocImportParser.h.

Referenced by clearData(), closeFile(), getCols(), and parse().

ifstream ocFileParser::inFile [private]

Definition at line 40 of file ocImportParser.h.

Referenced by closeFile(), getLine(), and openFile().

Definition at line 41 of file ocImportParser.h.

Referenced by checkQuote(), getLine(), getLineTokens(), parse(), and setLineTokens().

bool ocFileParser::bTrimQuote [private]

Definition at line 42 of file ocImportParser.h.

Referenced by parse(), and setTrimQuote().

bool ocFileParser::bCheckQuote [private]

Definition at line 43 of file ocImportParser.h.

Referenced by getLine(), parse(), and setCheckQuote().

bool ocFileParser::notDone [private]

Definition at line 44 of file ocImportParser.h.

Definition at line 48 of file ocImportParser.h.

Referenced by parse().


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

Generated on Sat Aug 15 12:48:31 2009 for w3systemsDevelopment by  doxygen 1.5.5