7 #ifndef _INC_cXmlReader_H
8 #define _INC_cXmlReader_H
45 return bEnd ? S_FALSE : S_OK;
79 #define cXmlNodeTypeDEF(a,b,c) friend class cXml##a;
81 #undef cXmlNodeTypeDEF
107 bool IsAlpha(
wchar_t anyByte)
const;
108 bool IsAlphaNum(
wchar_t anyByte)
const;
109 wchar_t ToLower(
wchar_t v)
const;
111 bool IsStringEqual(
const char* pszData,
const char* pszEndTag,
bool bIgnoreCase =
false)
const;
113 bool ReadWhitespace();
122 HRESULT ParseStringTo(OUT
cXmlString& rsText,
const char* pszEndTag,
bool bIgnoreWhitespace);
135 bool ParseMicrosoftBOM();
157 m_bCondenseWhitespace = bCondense;
162 return m_bCondenseWhitespace;
#define GRAYCALL
declare calling convention for static functions so everyone knows the arg passing scheme....
Definition: GrayCore.h:36
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
#define UNREFERENCED_PARAMETER(P)
< _WIN32 type thing. get rid of stupid warning.
Definition: SysTypes.h:299
#define UNREFERENCED_REFERENCE(x)
Definition: SysTypes.h:318
INT32 HRESULT
_WIN32 style error codes. INT32
Definition: SysTypes.h:465
Definition: cXmlDocument.h:30
Definition: cXmlReader.h:22
virtual ~cXmlReadVisitor()
Definition: cXmlReader.h:32
virtual HRESULT onText(cXmlReader &rReader, XMLNODE_TYPE eType, const cXmlString &sValue, bool bCDATA)
Definition: cXmlReader.h:47
virtual HRESULT onElementStart(cXmlReader &rReader, const cXmlString &sElement, cXmlAttributeSet &Attribs, bool bEnd)
Definition: cXmlReader.h:36
virtual HRESULT onElementEnd(cXmlReader &rReader, const cXmlString &sElement)
Definition: cXmlReader.h:59
cXmlReadVisitor() noexcept
Definition: cXmlReader.h:29
Definition: cXmlReader.h:69
int m_iDepth
Indent depth of reader.
Definition: cXmlReader.h:87
bool isCondensedWhitespace() const noexcept
Definition: cXmlReader.h:159
cTextPos m_PosNode
The cursor at the start of current XMLNODE_TYPE m_Pos. as opposed to cTextReader is the current curso...
Definition: cXmlReader.h:84
CXML_ENCODING_TYPE m_eEncoding
current encoding.
Definition: cXmlReader.h:85
bool m_bCondenseWhitespace
try to preserve Whitespace or not?
Definition: cXmlReader.h:86
void put_CondenseWhitespace(bool bCondense) noexcept
Definition: cXmlReader.h:151
static const StrLen_t k_TabSize
default desired spaces for a tab.
Definition: StrConst.h:47
Definition: cTextPos.h:18
Definition: cTextPos.h:107
class __DECL_IMPORT cXmlReader
Definition: cXmlReader.h:19
CXML_ENCODING_TYPE
Definition: cXml.h:24
@ CXML_ENCODING_UNKNOWN
Definition: cXml.h:27
int StrLen_t
the length of a string in chars (bytes for UTF8, wchar_t for UNICODE). or offset in characters....
Definition: StrConst.h:32
char FILECHAR_t
a UTF8 char in a file name. like TCHAR
Definition: FileName.h:22
XMLNODE_TYPE
Definition: cXml.h:39
static const StrLen_t k_LEN_MAX
arbitrary max size for Format() etc. NOTE: _MSC_VER says stack frame should be at least 16384
Definition: StrT.h:75