Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

XMLTableParser Class Reference

#include <XMLTableParser.h>

Inheritance diagram for XMLTableParser:

TableParser List of all members.

Public Member Functions

 XMLTableParser (const XMLTagManager *p)
bool readString (const std::string &inString, xmlNode *node)
void display (void)
void reset ()

Private Member Functions

bool _readDocument (void)
void _parse (xmlNode *node)
void _trimWhiteSpace (std::string &str)
bool _tagNameMatches (const xmlChar *xmlTagName, std::string referenceTagName)
unsigned _getRepeatCount (xmlNode *node)
std::string _getNodeContents (xmlNode *node)
void _storeColumnTitle (const std::string &title)

Private Attributes

const XMLTagManager_pXMLTagManager
xmlDoc * _document
xmlNode * _rootElement
int _tableCount
bool _readTitles
std::string CELL
std::string TABLE
std::string ROW
std::string COL
std::string TEXT
std::string REPEAT

Static Private Attributes

static const int WRITEBUFFERSIZE = 8192

Detailed Description

This class is used to parse XML files and strings. The XML formats supported are determined by files stored in the /dtds/ folder


Constructor & Destructor Documentation

XMLTableParser::XMLTableParser const XMLTagManager p  ) 
 

Parse the XML file and retrieve all the data into a vector node is the root node of the XML document


Member Function Documentation

std::string XMLTableParser::_getNodeContents xmlNode *  node  )  [private]
 

unsigned XMLTableParser::_getRepeatCount xmlNode *  node  )  [private]
 

void XMLTableParser::_parse xmlNode *  node  )  [private]
 

bool XMLTableParser::_readDocument void   )  [private]
 

void XMLTableParser::_storeColumnTitle const std::string &  title  )  [private]
 

bool XMLTableParser::_tagNameMatches const xmlChar *  xmlTagName,
std::string  referenceTagName
[private]
 

void XMLTableParser::_trimWhiteSpace std::string &  str  )  [private]
 

void XMLTableParser::display void   ) 
 

bool XMLTableParser::readString const std::string &  inString,
xmlNode *  node
 

void XMLTableParser::reset  ) 
 


Member Data Documentation

xmlDoc* XMLTableParser::_document [private]
 

const XMLTagManager* XMLTableParser::_pXMLTagManager [private]
 

bool XMLTableParser::_readTitles [private]
 

xmlNode* XMLTableParser::_rootElement [private]
 

int XMLTableParser::_tableCount [private]
 

std::string XMLTableParser::CELL [private]
 

std::string XMLTableParser::COL [private]
 

std::string XMLTableParser::REPEAT [private]
 

std::string XMLTableParser::ROW [private]
 

std::string XMLTableParser::TABLE [private]
 

std::string XMLTableParser::TEXT [private]
 

const int XMLTableParser::WRITEBUFFERSIZE = 8192 [static, private]
 


The documentation for this class was generated from the following files:
Generated on Fri Nov 18 16:24:39 2011 for MADELINE by  doxygen 1.4.4