![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cXmlDocument.h>
Public Member Functions | |
cXmlUnknown (cXmlString sValue="") | |
virtual | ~cXmlUnknown () |
cXmlUnknown (const cXmlUnknown &rCopy) | |
void | operator= (const cXmlUnknown &rCopy) |
virtual cXmlNode * | Clone () const |
Creates a copy of this Unknown and returns it. More... | |
virtual HRESULT | SetParseNode (cXmlReader &rReader) |
virtual HRESULT | Print (cStreamOutput &rOut, int nDepth=0) const |
Print this Unknown to a cStreamOutput stream. More... | |
virtual bool | OnVisit (IXmlVisitor *content) const |
Walk the XML tree visiting this node and all of its children. More... | |
virtual cXmlUnknown * | ToUnknown () |
virtual const cXmlUnknown * | ToUnknown () const |
![]() | |
virtual | ~cXmlNode () |
XMLNODE_TYPE | get_Type () const |
bool | isType (XMLNODE_TYPE eType) const |
void | put_UserData (void *pUserData) |
void * | get_UserData () const |
virtual void | SetClear () |
Delete all the children of this node. Does not affect 'this'. More... | |
void | put_Value (cXmlString sValue) |
const cXmlString & | get_Value () const |
HRESULT | QueryValueInt (int *piValue) const |
HRESULT | QueryValueDouble (double *pdValue) const |
QueryValueDouble examines the value string. See QueryValueInt(). More... | |
int | get_ValueInt () const |
Return the value of this attribute, converted to an integer. More... | |
double | get_ValueDouble () const |
Return the value of this attribute, converted to a double. More... | |
void | put_ValueInt (int iValue) |
Set the value from an integer. More... | |
void | put_ValueDouble (double dValue) |
Set the value from a double. More... | |
cXmlDocument * | get_Document () const |
cXmlNode * | GetPreviousSibling (const char *pszValue) const |
Navigate to a sibling node. More... | |
cXmlNode * | GetNextSiblingX (const char *pszValue) const |
Navigate to a sibling node with the given 'value'. More... | |
cXmlElement * | get_NextSiblingElement () const |
cXmlElement * | GetNextSiblingElement (const char *pszValue) const |
virtual cXmlContainer * | ToContainer () |
HRESULT | SetParse (const char *pszData, CXML_ENCODING_TYPE eEncoding=CXML_ENCODING_UNKNOWN) |
ITERATE_t | get_Row () const |
StrLen_t | get_Column () const |
![]() | |
cXmlNode * | get_Next () const |
cXmlNode * | get_Prev () const |
![]() | |
virtual | ~cListNodeBase () |
cListBase * | get_Parent () const noexcept |
cListNodeBase * | get_Next () const noexcept |
cListNodeBase * | get_Prev () const noexcept |
bool | hasParent () const noexcept |
void | RemoveFromParent () |
virtual HRESULT | DisposeThis () |
![]() | |
cHeapObject () | |
virtual | ~cHeapObject () |
bool | IsValidInsideN (INT_PTR index) const |
bool | IsValidInsidePtr (void const *pTest) const |
virtual size_t | GetHeapStatsThis (OUT ITERATE_t &iAllocCount) const |
virtual bool | isValidCheck () const noexcept |
Additional Inherited Members | |
![]() | |
enum | XMLNODE_TYPE { XMLNODE_QTY } |
![]() | |
static HRESULT | PrintDepth (cStreamOutput &rOut, int nDepth) |
![]() | |
static StrLen_t GRAYCALL | ParseMicrosoftBOM (const BYTE *pszData) |
static bool GRAYCALL | IsXML (const IniChar_t *pszStr, StrLen_t iLenMax=StrT::k_LEN_MAX) |
static cXmlString GRAYCALL | GetAttributeStr (const IniChar_t *pszName, const cXmlString &sValue) |
static void | AddPathElement (cXmlString &sPath, const cXmlString &sElement) |
static void | RemovePathElement (cXmlString &sPath, const cXmlString &sElement) |
![]() | |
cTextPos | m_Pos |
Where (line,col) in the parsed XML document is this node? m_PosNode. More... | |
![]() | |
static const char | k_xmlHeader [6] = "<?xml" |
"<?xml" // not case sensitive ! More... | |
static const char | k_xmlEnd [3] = "?>" |
"?>" More... | |
static const char | k_commentHeader [5] = "<!--" |
"<!--" // comments are not reentrant! More... | |
static const char | k_commentEnd [4] = "-->" |
"-->" More... | |
static const char | k_cdataHeader [10] = "<![CDATA[" |
"<![CDATA[" More... | |
static const char | k_cdataEnd [4] = "]]>" |
"]]>" More... | |
static const char | k_dtdHeader [3] = "<!" |
"<!" More... | |
![]() | |
cXmlNode (XMLNODE_TYPE eNodeType, cXmlString sValue="") | |
Only instantiate as a derived type. More... | |
virtual void | SetCopy (const cXmlNode &n) |
![]() | |
virtual void | put_Parent (cListBase *pParent) |
cListNodeBase () noexcept | |
![]() | |
const void * | get_HeapPtr () const noexcept override |
Get the top level (outermost, freeable) class pointer. I can delete get_HeapPtr(). More... | |
![]() | |
cNonCopyable () noexcept | |
Force the use of Factory creation via protected constructor. More... | |
~cNonCopyable () noexcept | |
![]() | |
const XMLNODE_TYPE | m_eNodeType |
cXmlString | m_sValue |
parent usage dependent m_eNodeType. More... | |
void * | m_pUserData |
Field containing a generic pointer to arbitrary user data. More... | |
Any tag that cXml doesn't recognize is saved as an XMLNODE_Unknown. It is a tag of text, but should not be modified. It will be written back to the XML, unchanged, when the file is saved.
|
inline |
|
inlinevirtual |
|
inline |
|
virtual |
Creates a copy of this Unknown and returns it.
Implements GrayLib::cXmlNode.
|
virtual |
Walk the XML tree visiting this node and all of its children.
Implements GrayLib::cXmlNode.
|
inline |
|
virtual |
Print this Unknown to a cStreamOutput stream.
Implements GrayLib::cXmlNode.
|
virtual |
Populate node. Parse XMLNODE_Unknown
Implements GrayLib::cXmlNode.
|
inlinevirtual |
|
inlinevirtual |