#include <ocImportParser.h>

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) |
| ocFileCols & | getCols (void) |
| ocFileParser & | setDelim (string in) |
| ocFileParser & | setTrimQuote (bool in) |
| ocFileParser & | setCheckQuote (bool in) |
| ocFileParser & | setLineTokens (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) |
| ocFileCols & | getCols (void) |
| ocFileParser & | setDelim (string in) |
| ocFileParser & | setTrimQuote (bool in) |
| ocFileParser & | setCheckQuote (bool in) |
| ocFileParser & | setLineTokens (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 |
Definition at line 34 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.
| ocFileParser::ocFileParser | ( | ) | [inline] |
Definition at line 49 of file ocImportParser.h.
| ocFileParser::~ocFileParser | ( | ) | [inline] |
Definition at line 54 of file ocImportParser.h.
| void ocFileParser::clearData | ( | void | ) | [inline] |
| bool ocFileParser::openFile | ( | string | filePath | ) | [inline] |
Definition at line 62 of file ocImportParser.h.
References inFile.
Referenced by importGlobalContent(), importLinks(), importMenuItems(), importMenus(), importPageMenus(), importPages(), importParagraphs(), and importTemplates().
| bool ocFileParser::closeFile | ( | void | ) | [inline] |
| bool ocFileParser::isEven | ( | int | cnt | ) | [inline] |
| 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] |
Definition at line 133 of file ocImportParser.h.
References getLine(), and parse().
Referenced by importGlobalContent(), importLinks(), importMenuItems(), importMenus(), importPageMenus(), importPages(), importParagraphs(), and importTemplates().
| void ocFileParser::trimQuote | ( | string & | tok | ) | [inline] |
| bool ocFileParser::hasEvenQuotes | ( | string & | tok | ) | [inline] |
| 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] |
Definition at line 202 of file ocImportParser.h.
References attrSep, bCheckQuote, bTrimQuote, cDelim, checkQuote(), clearData(), colCount, cols, ocString::endOfParse(), ocFileCol::iMapPos, lineTokens, ocFileCol::name, ocString::parse(), ocString::parseInit(), trimQuote(), and ocFileCol::value.
Referenced by summer::Agget(), main(), and parseLine().
| 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] |
Definition at line 246 of file ocImportParser.h.
References colCount.
Referenced by importGlobalContent(), importLinks(), importMenuItems(), importMenus(), importPageMenus(), importPages(), importParagraphs(), and importTemplates().
| ocFileCols& ocFileParser::getCols | ( | void | ) | [inline] |
Definition at line 250 of file ocImportParser.h.
References cols.
Referenced by summer::Agget(), importGlobalContent(), importLinks(), importMenuItems(), importMenus(), importPageMenus(), importPages(), importParagraphs(), importTemplates(), and main().
| ocFileParser& ocFileParser::setDelim | ( | string | in | ) | [inline] |
Definition at line 254 of file ocImportParser.h.
References cDelim.
Referenced by summer::Agget(), importGlobalContent(), importLinks(), importMenuItems(), importMenus(), importPageMenus(), importPages(), importParagraphs(), importTemplates(), and main().
| ocFileParser& ocFileParser::setTrimQuote | ( | bool | in | ) | [inline] |
| ocFileParser& ocFileParser::setCheckQuote | ( | bool | in | ) | [inline] |
Definition at line 264 of file ocImportParser.h.
References bCheckQuote.
Referenced by summer::Agget(), importGlobalContent(), importLinks(), importMenuItems(), importMenus(), importPageMenus(), importPages(), importParagraphs(), importTemplates(), and main().
| 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] |
Definition at line 274 of file ocImportParser.h.
References lineTokens.
Referenced by importGlobalContent(), importLinks(), importMenuItems(), importMenus(), importPageMenus(), importPages(), and importTemplates().
| void ocFileParser::clearData | ( | void | ) | [inline] |
| bool ocFileParser::openFile | ( | string | filePath | ) | [inline] |
| bool ocFileParser::closeFile | ( | void | ) | [inline] |
| 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] |
| void ocFileParser::trimQuote | ( | string & | tok | ) | [inline] |
Definition at line 142 of file ocImportParser.h.
| bool ocFileParser::hasEvenQuotes | ( | string & | tok | ) | [inline] |
| 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] |
Definition at line 202 of file ocImportParser.h.
References attrSep, bCheckQuote, bTrimQuote, cDelim, checkQuote(), clearData(), colCount, cols, ocString::endOfParse(), ocFileCol::iMapPos, lineTokens, ocFileCol::name, ocString::parse(), ocString::parseInit(), trimQuote(), and ocFileCol::value.
| int ocFileParser::getColCount | ( | void | ) | [inline] |
| void ocFileParser::setColCount | ( | int | iCount | ) | [inline] |
| ocFileCols& ocFileParser::getCols | ( | void | ) | [inline] |
| ocFileParser& ocFileParser::setDelim | ( | string | in | ) | [inline] |
| ocFileParser& ocFileParser::setTrimQuote | ( | bool | in | ) | [inline] |
| ocFileParser& ocFileParser::setCheckQuote | ( | bool | in | ) | [inline] |
| ocFileParser& ocFileParser::setLineTokens | ( | string | in | ) | [inline] |
| string ocFileParser::getLineTokens | ( | void | ) | [inline] |
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().
ocFileCols ocFileParser::cols [private] |
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().
ocString ocFileParser::lineTokens [private] |
Definition at line 41 of file ocImportParser.h.
Referenced by checkQuote(), getLine(), getLineTokens(), parse(), and setLineTokens().
bool ocFileParser::bTrimQuote [private] |
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.
| string ocFileParser::attrSep |
1.5.5