5 #ifndef EXPATPARSEMGR_H
6 #define EXPATPARSEMGR_H
11 #include <vapor/MyBase.h>
12 #include <vapor/common.h>
14 #pragma warning(disable : 4251)
26 virtual bool elementStartHandler(
ExpatParseMgr*,
int , std::string& ,
const char ** ) = 0;
27 virtual bool elementEndHandler(
ExpatParseMgr*,
int , std::string& ) = 0;
58 void parse(ifstream& is);
62 void parseError(
const char *format, ...);
73 currentParsedClass = pc;
77 return currentParsedClass;
80 void skipElement(
string tag,
int depth);
101 friend void _StartElementHandler(
102 void *userData,
const XML_Char *tag,
const XML_Char **attrs
109 friend void _EndElementHandler(
void *userData,
const XML_Char *tag) {
114 friend void _CharDataHandler(
115 void *userData,
const XML_Char *s,
int len
117 ExpatParseMgr* mgr = (ExpatParseMgr *) userData;
123 friend void _StartElementHandler(
124 void *userData,
const XML_Char *tag,
const XML_Char **attrs
128 friend void _EndElementHandler(
void *userData,
const XML_Char *tag);
130 friend void _CharDataHandler(
131 void *userData,
const XML_Char *s,
int len
135 void _startElementHandler(
const XML_Char *tag,
const char **attrs);
136 void _endElementHandler(
const XML_Char *tag);
137 void _charDataHandler(
const XML_Char *s,
int len);
151 #endif // EXPATPARSEMGR_H
ParsedXml * popClassStack()
vector< double > _expatDoubleData
void _charDataHandler(const XML_Char *s, int len)
vector< double > & getDoubleData()
static const string _longType
void _startElementHandler(const XML_Char *tag, const char **attrs)
static const string _longType
void pushClassStack(ParsedXml *pc)
vector< long > _expatLongData
ParsedXml * previousClass
static const string _doubleType
stack< VDF_API ExpatStackElement * > _expatStateStack
virtual bool charHandler(ExpatParseMgr *, const XML_Char *, int)
vector< long > & getLongData()
static const string _typeAttr
static const string _doubleType
ParsedXml * currentParsedClass
ExpatStackElement * getStateStackTop()
static const string _stringType
void _endElementHandler(const XML_Char *tag)
static const string _stringType