9 #ifndef PDBML_PARSER_HANDLER_H
10 #define PDBML_PARSER_HANDLER_H
16 #include <xercesc/sax2/DefaultHandler.hpp>
17 #include <xercesc/sax2/Attributes.hpp>
22 XERCES_CPP_NAMESPACE_USE
39 const XMLCh *
const localname,
40 const XMLCh *
const qname,
41 const Attributes& attrs);
44 const XMLCh *
const localname,
45 const XMLCh *
const qname);
48 const unsigned int length);
50 void warning(
const SAXParseException& exception);
51 void error(
const SAXParseException& exception);
52 void fatalError(
const SAXParseException& exception);
62 std::vector<string> _currRowNames;
63 std::vector<string> _currRowValues;
66 string _currBlockName;
73 vector<string> _keyColNames;
77 void _GetAttributes(
const Attributes& attrs);
78 string _GetDataBlockName(
const Attributes& attrs);
79 string _ExtractTableName(
const string& tableContName);
84 void _ErrMessage(
const string& err,
const string& element);
void error(const SAXParseException &exception)
void startElement(const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname, const Attributes &attrs)
void warning(const SAXParseException &exception)
void characters(const XMLCh *const chars, const unsigned int length)
static const string TABLE_CONTAINER_SUFFIX
Definition: PdbMlParserHandler.h:27
Definition: PdbMlParserHandler.h:30
void endElement(const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname)
static const string ATTRIBUTE_DATABLOCK
Definition: PdbMlParserHandler.h:26
void printState(const string &element)
static XERCES_CPP_NAMESPACE_USE const string ELEMENT_DATABLOCK
Definition: PdbMlParserHandler.h:25
Public class that represents a file composed of blocks with tables.
Definition: TableFile.h:361
Header file for Block and TableFile classes.
PdbMlParserHandler(TableFile &tableFile)
void fatalError(const SAXParseException &exception)
Public class that respresents a two-dimensional table of strings.
Definition: ISTable.h:53