VAPoR  0.1
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | Friends | List of all members
VAPoR::ExpatParseMgr Class Reference

#include <ExpatParseMgr.h>

Inheritance diagram for VAPoR::ExpatParseMgr:
VetsUtil::MyBase

Public Member Functions

 ExpatParseMgr (ParsedXml *topLevelClass)
 
 ~ExpatParseMgr ()
 
void parse (ifstream &is)
 
ExpatStackElementgetStateStackTop ()
 
void parseError (const char *format,...)
 
vector< long > & getLongData ()
 
vector< double > & getDoubleData ()
 
string & getStringData ()
 
void pushClassStack (ParsedXml *pc)
 
ParsedXmlpopClassStack ()
 
void skipElement (string tag, int depth)
 
- Public Member Functions inherited from VetsUtil::MyBase
 MyBase ()
 
const string & getClassName () const
 

Protected Member Functions

void _startElementHandler (const XML_Char *tag, const char **attrs)
 
void _endElementHandler (const XML_Char *tag)
 
void _charDataHandler (const XML_Char *s, int len)
 
- Protected Member Functions inherited from VetsUtil::MyBase
void SetClassName (const string &name)
 

Protected Attributes

ParsedXmlcurrentParsedClass
 
stack< VDF_API ExpatStackElement * > _expatStateStack
 
XML_Parser _expatParser
 
string _expatStringData
 
vector< long > _expatLongData
 
vector< double > _expatDoubleData
 

Static Protected Attributes

static const string _stringType
 
static const string _longType
 
static const string _doubleType
 

Friends

void _StartElementHandler (void *userData, const XML_Char *tag, const XML_Char **attrs)
 
void _EndElementHandler (void *userData, const XML_Char *tag)
 
void _CharDataHandler (void *userData, const XML_Char *s, int len)
 

Additional Inherited Members

- Public Types inherited from VetsUtil::MyBase
typedef void(* ErrMsgCB_T) (const char *msg, int err_code)
 
typedef void(* DiagMsgCB_T) (const char *msg)
 
- Static Public Member Functions inherited from VetsUtil::MyBase
static void SetErrMsg (const char *format,...)
 Record a formatted error message. More...
 
static void SetErrMsg (int errcode, const char *format,...)
 Record a formatted error message and an error code. More...
 
static const char * GetErrMsg ()
 
static void SetErrCode (int err_code)
 Record an error code. More...
 
static int GetErrCode ()
 Retrieve the current error code. More...
 
static void SetErrMsgCB (ErrMsgCB_T cb)
 
static ErrMsgCB_T GetErrMsgCB ()
 
static void SetErrMsgFilePtr (FILE *fp)
 
static const FILE * SetErrMsgFilePtr ()
 
static void SetDiagMsg (const char *format,...)
 Record a formatted diagnostic message. More...
 
static const char * GetDiagMsg ()
 
static void SetDiagMsgCB (DiagMsgCB_T cb)
 
static DiagMsgCB_T GetDiagMsgCB ()
 
static void SetDiagMsgFilePtr (FILE *fp)
 
static bool EnableErrMsg (bool enable)
 
- Static Public Attributes inherited from VetsUtil::MyBase
static char * ErrMsg
 
static int ErrCode
 
static int ErrMsgSize
 
static FILE * ErrMsgFilePtr
 
static ErrMsgCB_T ErrMsgCB
 
static char * DiagMsg
 
static int DiagMsgSize
 
static FILE * DiagMsgFilePtr
 
static DiagMsgCB_T DiagMsgCB
 
static bool Enabled
 

Detailed Description

Definition at line 51 of file ExpatParseMgr.h.

Constructor & Destructor Documentation

VAPoR::ExpatParseMgr::ExpatParseMgr ( ParsedXml topLevelClass)
VAPoR::ExpatParseMgr::~ExpatParseMgr ( )

Member Function Documentation

void VAPoR::ExpatParseMgr::_charDataHandler ( const XML_Char *  s,
int  len 
)
protected
void VAPoR::ExpatParseMgr::_endElementHandler ( const XML_Char *  tag)
protected
void VAPoR::ExpatParseMgr::_startElementHandler ( const XML_Char *  tag,
const char **  attrs 
)
protected
vector<double>& VAPoR::ExpatParseMgr::getDoubleData ( )
inline

Definition at line 64 of file ExpatParseMgr.h.

vector<long>& VAPoR::ExpatParseMgr::getLongData ( )
inline

Definition at line 63 of file ExpatParseMgr.h.

ExpatStackElement* VAPoR::ExpatParseMgr::getStateStackTop ( )
inline

Definition at line 59 of file ExpatParseMgr.h.

string& VAPoR::ExpatParseMgr::getStringData ( )
inline

Definition at line 65 of file ExpatParseMgr.h.

void VAPoR::ExpatParseMgr::parse ( ifstream &  is)
void VAPoR::ExpatParseMgr::parseError ( const char *  format,
  ... 
)
ParsedXml* VAPoR::ExpatParseMgr::popClassStack ( )
inline

Definition at line 75 of file ExpatParseMgr.h.

References VAPoR::ParsedXml::previousClass.

void VAPoR::ExpatParseMgr::pushClassStack ( ParsedXml pc)
inline

Definition at line 71 of file ExpatParseMgr.h.

References VAPoR::ParsedXml::previousClass.

void VAPoR::ExpatParseMgr::skipElement ( string  tag,
int  depth 
)

Friends And Related Function Documentation

void _CharDataHandler ( void *  userData,
const XML_Char *  s,
int  len 
)
friend
void _EndElementHandler ( void *  userData,
const XML_Char *  tag 
)
friend
void _StartElementHandler ( void *  userData,
const XML_Char *  tag,
const XML_Char **  attrs 
)
friend

Member Data Documentation

const string VAPoR::ExpatParseMgr::_doubleType
staticprotected

Definition at line 97 of file ExpatParseMgr.h.

vector<double> VAPoR::ExpatParseMgr::_expatDoubleData
protected

Definition at line 90 of file ExpatParseMgr.h.

vector<long> VAPoR::ExpatParseMgr::_expatLongData
protected

Definition at line 89 of file ExpatParseMgr.h.

XML_Parser VAPoR::ExpatParseMgr::_expatParser
protected

Definition at line 87 of file ExpatParseMgr.h.

stack<VDF_API ExpatStackElement *> VAPoR::ExpatParseMgr::_expatStateStack
protected

Definition at line 85 of file ExpatParseMgr.h.

string VAPoR::ExpatParseMgr::_expatStringData
protected

Definition at line 88 of file ExpatParseMgr.h.

const string VAPoR::ExpatParseMgr::_longType
staticprotected

Definition at line 96 of file ExpatParseMgr.h.

const string VAPoR::ExpatParseMgr::_stringType
staticprotected

Definition at line 95 of file ExpatParseMgr.h.

ParsedXml* VAPoR::ExpatParseMgr::currentParsedClass
protected

Definition at line 83 of file ExpatParseMgr.h.


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