GME
13
|
#include <GenParser.h>
Classes | |
struct | element_type |
Public Types | |
typedef std::vector< std::pair < std::tstring, std::tstring > > | attributes_type |
typedef attributes_type::const_iterator | attributes_iterator |
typedef unsigned long | counter_type |
Public Member Functions | |
CGenParser () | |
void | SetErrorInfo2 (HRESULT hr) |
void | ThrowXmlError (const TCHAR *format,...) |
virtual InputSource * | resolveEntity (const XMLCh *const publicId, const XMLCh *const systemId) |
virtual void | startDocument () |
virtual void | endDocument () |
virtual void | startElement (const XMLCh *const name, AttributeList &attributes) |
virtual void | endElement (const XMLCh *const name) |
virtual void | characters (const XMLCh *const chars, const XMLSize_t) |
virtual void | error (const SAXParseException &exception) |
virtual void | fatalError (const SAXParseException &exception) |
virtual void | setDocumentLocator (const Locator *const locator) |
virtual void | fireStartFunction (const std::tstring &name, const attributes_type &attributes)=0 |
virtual void | fireEndFunction (const std::tstring &name)=0 |
virtual void | resetDocument () |
template<class INTERFACE , class FUNC_INTERFACE > | |
void | Attr (attributes_iterator i, const TCHAR *name, INTERFACE p, HRESULT(__stdcall FUNC_INTERFACE::*func)(BSTR)) |
template<class INTERFACE , class FUNC_INTERFACE > | |
void | Attr (attributes_iterator i, const TCHAR *name, INTERFACE p, HRESULT(__stdcall FUNC_INTERFACE::*func)(long)) |
template<class INTERFACE , class FUNC_INTERFACE > | |
void | Attr (attributes_iterator i, const TCHAR *name, INTERFACE p, HRESULT(__stdcall FUNC_INTERFACE::*func)(unsigned long)) |
void | StartNone (const attributes_type &attributes) |
void | EndNone () |
element_type & | GetCurrent () |
const element_type & | GetPrevious () const |
std::tstring & | GetCurrData () |
const std::tstring & | GetPrevName () const |
template<class T > | |
void | GetPrevObj (CComObjPtr< T > &obj) const |
_bstr_t | PutInBstrAttr (const attributes_type &attributes, const TCHAR *name) |
Static Public Member Functions | |
static const std::tstring * | GetByNameX (const attributes_type &attributes, const TCHAR *name) |
static const std::tstring & | GetByName (const attributes_type &attributes, const TCHAR *name) |
static long | toLong (std::tstring s) |
static unsigned long | toULong (std::tstring s) |
Public Attributes | |
const Locator * | locator |
std::tstring | xmlfile |
_bstr_t | errorinfo |
long | err_line |
long | err_column |
counter_type | counter |
std::vector< element_type > | elements |
Definition at line 31 of file GenParser.h.
typedef attributes_type::const_iterator CGenParser::attributes_iterator |
Definition at line 35 of file GenParser.h.
typedef std::vector< std::pair<std::tstring, std::tstring> > CGenParser::attributes_type |
Definition at line 34 of file GenParser.h.
typedef unsigned long CGenParser::counter_type |
Definition at line 152 of file GenParser.h.
CGenParser::CGenParser | ( | ) | [inline] |
Definition at line 38 of file GenParser.h.
void CGenParser::Attr | ( | attributes_iterator | i, |
const TCHAR * | name, | ||
INTERFACE | p, | ||
HRESULT(__stdcall FUNC_INTERFACE::*)(BSTR) | func | ||
) | [inline] |
Definition at line 93 of file GenParser.h.
void CGenParser::Attr | ( | attributes_iterator | i, |
const TCHAR * | name, | ||
INTERFACE | p, | ||
HRESULT(__stdcall FUNC_INTERFACE::*)(long) | func | ||
) | [inline] |
Definition at line 109 of file GenParser.h.
void CGenParser::Attr | ( | attributes_iterator | i, |
const TCHAR * | name, | ||
INTERFACE | p, | ||
HRESULT(__stdcall FUNC_INTERFACE::*)(unsigned long) | func | ||
) | [inline] |
Definition at line 122 of file GenParser.h.
void CGenParser::characters | ( | const XMLCh *const | chars, |
const XMLSize_t | length | ||
) | [virtual] |
Definition at line 286 of file GenParser.cpp.
void CGenParser::endDocument | ( | ) | [virtual] |
Definition at line 134 of file GenParser.cpp.
void CGenParser::endElement | ( | const XMLCh *const | name | ) | [virtual] |
Reimplemented in CMgaParser.
Definition at line 221 of file GenParser.cpp.
void CGenParser::EndNone | ( | ) | [inline] |
Definition at line 142 of file GenParser.h.
void CGenParser::error | ( | const SAXParseException & | exception | ) | [virtual] |
Definition at line 292 of file GenParser.cpp.
void CGenParser::fatalError | ( | const SAXParseException & | exception | ) | [virtual] |
Definition at line 300 of file GenParser.cpp.
virtual void CGenParser::fireEndFunction | ( | const std::tstring & | name | ) | [pure virtual] |
Implemented in CMgaMetaParser, and CMgaParser.
virtual void CGenParser::fireStartFunction | ( | const std::tstring & | name, |
const attributes_type & | attributes | ||
) | [pure virtual] |
Implemented in CMgaMetaParser, and CMgaParser.
static const std::tstring& CGenParser::GetByName | ( | const attributes_type & | attributes, |
const TCHAR * | name | ||
) | [inline, static] |
Definition at line 81 of file GenParser.h.
const std::tstring * CGenParser::GetByNameX | ( | const attributes_type & | attributes, |
const TCHAR * | name | ||
) | [static] |
Definition at line 312 of file GenParser.cpp.
std::tstring& CGenParser::GetCurrData | ( | ) | [inline] |
Definition at line 180 of file GenParser.h.
element_type& CGenParser::GetCurrent | ( | ) | [inline] |
Definition at line 170 of file GenParser.h.
const element_type& CGenParser::GetPrevious | ( | ) | const [inline] |
Definition at line 171 of file GenParser.h.
const std::tstring& CGenParser::GetPrevName | ( | ) | const [inline] |
Definition at line 181 of file GenParser.h.
void CGenParser::GetPrevObj | ( | CComObjPtr< T > & | obj | ) | const [inline] |
Definition at line 184 of file GenParser.h.
_bstr_t CGenParser::PutInBstrAttr | ( | const attributes_type & | attributes, |
const TCHAR * | name | ||
) | [inline] |
Definition at line 191 of file GenParser.h.
virtual void CGenParser::resetDocument | ( | ) | [inline, virtual] |
Definition at line 65 of file GenParser.h.
InputSource * CGenParser::resolveEntity | ( | const XMLCh *const | publicId, |
const XMLCh *const | systemId | ||
) | [virtual] |
Definition at line 85 of file GenParser.cpp.
void CGenParser::setDocumentLocator | ( | const Locator *const | locator | ) | [virtual] |
Definition at line 305 of file GenParser.cpp.
void CGenParser::SetErrorInfo2 | ( | HRESULT | hr | ) |
Definition at line 42 of file GenParser.cpp.
void CGenParser::startDocument | ( | ) | [virtual] |
Definition at line 129 of file GenParser.cpp.
void CGenParser::startElement | ( | const XMLCh *const | name, |
AttributeList & | attributes | ||
) | [virtual] |
Reimplemented in CMgaParser.
Definition at line 139 of file GenParser.cpp.
void CGenParser::StartNone | ( | const attributes_type & | attributes | ) | [inline] |
Definition at line 141 of file GenParser.h.
void CGenParser::ThrowXmlError | ( | const TCHAR * | format, |
... | |||
) |
Definition at line 58 of file GenParser.cpp.
long CGenParser::toLong | ( | std::tstring | s | ) | [static] |
Definition at line 327 of file GenParser.cpp.
unsigned long CGenParser::toULong | ( | std::tstring | s | ) | [static] |
Definition at line 340 of file GenParser.cpp.
Definition at line 153 of file GenParser.h.
std::vector<element_type> CGenParser::elements |
Definition at line 167 of file GenParser.h.
Definition at line 150 of file GenParser.h.
long CGenParser::err_line |
Definition at line 149 of file GenParser.h.
_bstr_t CGenParser::errorinfo |
Definition at line 148 of file GenParser.h.
const Locator* CGenParser::locator |
Definition at line 71 of file GenParser.h.
Definition at line 147 of file GenParser.h.