Implementation of IXmlDoc. More...
#include <SXml.h>
Public Member Functions | |
SXmlDoc () | |
Constructor for SXmlDoc. | |
~SXmlDoc () | |
Destructor for SXmlDoc. | |
LPVOID | GetPrivPtr () SCONST OVERRIDE |
Retrieves a private pointer associated with the document. | |
void | Reset () OVERRIDE |
Resets the document, removing all nodes. | |
void | Copy (const IXmlDoc *proto) OVERRIDE |
Copies the contents of another document into this document. | |
BOOL | LoadString (const wchar_t *contents, unsigned int options) OVERRIDE |
Loads the document from a zero-terminated string. | |
BOOL | LoadFileA (const char *path, unsigned int options, XmlEncoding encoding) OVERRIDE |
Loads the document from a file (ANSI version). | |
BOOL | LoadFileW (const wchar_t *path, unsigned int options, XmlEncoding encoding) OVERRIDE |
Loads the document from a file (Unicode version). | |
BOOL | LoadBuffer (const void *contents, size_t size, unsigned int options, XmlEncoding encoding) OVERRIDE |
Loads the document from a buffer. | |
BOOL | LoadBufferInplace (void *contents, size_t size, unsigned int options, XmlEncoding encoding) OVERRIDE |
Loads the document from a buffer using in-place parsing. | |
BOOL | LoadBufferInplaceOwn (void *contents, size_t size, unsigned int options, XmlEncoding encoding) OVERRIDE |
Loads the document from a buffer using in-place parsing with automatic buffer management. | |
void | GetParseResult (XmlParseResult *pResult) SCONST OVERRIDE |
Retrieves the result of the last parsing operation. | |
void | SaveBinary (FILE *f) SCONST OVERRIDE |
Saves the XML document to a writer. | |
BOOL | SaveFileA (const char *path, const wchar_t *indent, unsigned int flags, XmlEncoding encoding) SCONST OVERRIDE |
Saves the XML document to a file (ANSI version). | |
BOOL | SaveFileW (const wchar_t *path, const wchar_t *indent, unsigned int flags, XmlEncoding encoding) SCONST OVERRIDE |
Saves the XML document to a file (Unicode version). | |
IXmlNode * | Root () SCONST OVERRIDE |
Retrieves the root node of the document. | |
bool | load_string (const wchar_t *contents, unsigned int options=xml_parse_default) |
Loads the document from a zero-terminated string. | |
bool | load_file (const char *path, unsigned int options=xml_parse_default, XmlEncoding encoding=enc_auto) |
Loads the document from a file (ANSI version). | |
bool | load_file (const wchar_t *path, unsigned int options=xml_parse_default, XmlEncoding encoding=enc_auto) |
Loads the document from a file (Unicode version). | |
bool | load_buffer (const void *contents, size_t size, unsigned int options=xml_parse_default, XmlEncoding encoding=enc_auto) |
Loads the document from a buffer. | |
bool | load_buffer_inplace (void *contents, size_t size, unsigned int options=xml_parse_default, XmlEncoding encoding=enc_auto) |
Loads the document from a buffer using in-place parsing. | |
bool | load_buffer_inplace_own (void *contents, size_t size, unsigned int options=xml_parse_default, XmlEncoding encoding=enc_auto) |
Loads the document from a buffer using in-place parsing with automatic buffer management. | |
bool | save_file (const char *path, const wchar_t *indent=L"\t", unsigned int flags=xml_parse_default, XmlEncoding encoding=enc_auto) const |
Saves the XML document to a file (ANSI version). | |
bool | save_file (const wchar_t *path, const wchar_t *indent=L"\t", unsigned int flags=xml_parse_default, XmlEncoding encoding=enc_auto) const |
Saves the XML document to a file (Unicode version). | |
SXmlNode | root () const |
Retrieves the root node of the document. | |
![]() | |
TObjRefImpl () | |
Constructor that initializes the reference count to 1. | |
virtual | ~TObjRefImpl () |
Virtual destructor. | |
long | AddRef () override |
Increments the reference count. | |
long | Release () override |
Decrements the reference count and deletes the object if the count reaches zero. | |
void | OnFinalRelease () override |
Deletes the object. | |
![]() | |
long | AddRef () PURE |
Increases the reference count. | |
long | Release () PURE |
Decreases the reference count. | |
void | OnFinalRelease () PURE |
Called when the reference count reaches zero and the object is about to be released. | |
Static Public Member Functions | |
static const char * | GetErrDesc (XmlStatus status) |
Retrieves the error description for a given XML status. | |
Friends | |
class | SXmlAttr |
class | SXmlNode |
Additional Inherited Members | |
![]() | |
LONG | m_cRef |
Reference count. | |
void SXmlDoc::Copy | ( | const IXmlDoc * | proto | ) |
|
static |
void SXmlDoc::GetParseResult | ( | XmlParseResult * | pResult | ) |
LPVOID SXmlDoc::GetPrivPtr | ( | ) |
bool SXmlDoc::load_buffer | ( | const void * | contents, |
size_t | size, | ||
unsigned int | options = xml_parse_default, | ||
XmlEncoding | encoding = enc_auto ) |
bool SXmlDoc::load_buffer_inplace | ( | void * | contents, |
size_t | size, | ||
unsigned int | options = xml_parse_default, | ||
XmlEncoding | encoding = enc_auto ) |
Loads the document from a buffer using in-place parsing.
contents | The buffer containing the XML data. |
size | The size of the buffer. |
options | Parsing options. |
encoding | The encoding of the buffer. |
bool SXmlDoc::load_buffer_inplace_own | ( | void * | contents, |
size_t | size, | ||
unsigned int | options = xml_parse_default, | ||
XmlEncoding | encoding = enc_auto ) |
Loads the document from a buffer using in-place parsing with automatic buffer management.
contents | The buffer containing the XML data. |
size | The size of the buffer. |
options | Parsing options. |
encoding | The encoding of the buffer. |
bool SXmlDoc::load_file | ( | const char * | path, |
unsigned int | options = xml_parse_default, | ||
XmlEncoding | encoding = enc_auto ) |
bool SXmlDoc::load_file | ( | const wchar_t * | path, |
unsigned int | options = xml_parse_default, | ||
XmlEncoding | encoding = enc_auto ) |
bool SXmlDoc::load_string | ( | const wchar_t * | contents, |
unsigned int | options = xml_parse_default ) |
BOOL SXmlDoc::LoadBuffer | ( | const void * | contents, |
size_t | size, | ||
unsigned int | options, | ||
XmlEncoding | encoding ) |
Loads the document from a buffer.
contents | The buffer containing the XML data. |
size | The size of the buffer. |
options | Parsing options. |
encoding | The encoding of the buffer. |
Implements IXmlDoc.
BOOL SXmlDoc::LoadBufferInplace | ( | void * | contents, |
size_t | size, | ||
unsigned int | options, | ||
XmlEncoding | encoding ) |
Loads the document from a buffer using in-place parsing.
contents | The buffer containing the XML data. |
size | The size of the buffer. |
options | Parsing options. |
encoding | The encoding of the buffer. |
Implements IXmlDoc.
BOOL SXmlDoc::LoadBufferInplaceOwn | ( | void * | contents, |
size_t | size, | ||
unsigned int | options, | ||
XmlEncoding | encoding ) |
Loads the document from a buffer using in-place parsing with automatic buffer management.
contents | The buffer containing the XML data. |
size | The size of the buffer. |
options | Parsing options. |
encoding | The encoding of the buffer. |
Implements IXmlDoc.
BOOL SXmlDoc::LoadFileA | ( | const char * | path, |
unsigned int | options, | ||
XmlEncoding | encoding ) |
BOOL SXmlDoc::LoadFileW | ( | const wchar_t * | path, |
unsigned int | options, | ||
XmlEncoding | encoding ) |
BOOL SXmlDoc::LoadString | ( | const wchar_t * | contents, |
unsigned int | options ) |
void SXmlDoc::Reset | ( | ) |
IXmlNode * SXmlDoc::Root | ( | ) |
SXmlNode SXmlDoc::root | ( | ) | const |
bool SXmlDoc::save_file | ( | const char * | path, |
const wchar_t * | indent = L"\t", | ||
unsigned int | flags = xml_parse_default, | ||
XmlEncoding | encoding = enc_auto ) const |
bool SXmlDoc::save_file | ( | const wchar_t * | path, |
const wchar_t * | indent = L"\t", | ||
unsigned int | flags = xml_parse_default, | ||
XmlEncoding | encoding = enc_auto ) const |
void SXmlDoc::SaveBinary | ( | FILE * | f | ) |
BOOL SXmlDoc::SaveFileA | ( | const char * | path, |
const wchar_t * | indent, | ||
unsigned int | flags, | ||
XmlEncoding | encoding ) |
BOOL SXmlDoc::SaveFileW | ( | const wchar_t * | path, |
const wchar_t * | indent, | ||
unsigned int | flags, | ||
XmlEncoding | encoding ) |
Saves the XML document to a file (Unicode version).
path | The path to the file. |
indent | The indentation string. |
flags | Saving flags. |
encoding | The encoding of the file. |
Implements IXmlDoc.