OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
XmlPugi Class Reference

#include <xml_pugi.h>

Inheritance diagram for XmlPugi:
Collaboration diagram for XmlPugi:

Classes

struct  PugiPredicate
 
struct  xmpp_buf_write
 

Public Member Functions

virtual int LoadDoc (const std::string &doc)
 
virtual int WriteDoc (uint8_t *buf)
 
virtual int WriteRawDoc (uint8_t *buf)
 
virtual void PrintDoc (std::ostream &os) const
 
virtual void PrintDocFormatted (std::ostream &os) const
 
virtual int AddNode (const std::string &key, const std::string &value)
 
virtual int DeleteNode (const std::string &key)
 
virtual int ModifyNode (const std::string &key, const std::string &value)
 
virtual int AddChildNode (const std::string &key, const std::string &value)
 
virtual int AddChildNodeAfter (const std::string &node_name, const std::string &key, const std::string &value)
 
virtual int AddAttribute (const std::string &key, const std::string &value)
 
virtual int DeleteAttribute (const std::string &key)
 
virtual int ModifyAttribute (const std::string &key, const std::string &value)
 
virtual const char * ReadNode (const std::string &name)
 
virtual const char * ReadNodeName (const std::string &name)
 
virtual const char * ReadNodeValue ()
 
virtual const char * ReadChildNode ()
 
virtual const char * ReadChildNodeName ()
 
virtual const char * ReadNextNode ()
 
virtual const char * ReadNextNodeName ()
 
virtual void RewindNode ()
 
virtual const char * ReadAttrib (const std::string &str)
 
virtual const char * ReadFirstAttrib ()
 
virtual const char * ReadNextAttrib ()
 
virtual void RewindAttrib ()
 
virtual const char * ReadParentName ()
 
virtual void RewindDoc ()
 
virtual void AppendDoc (const std::string &str, XmlBase *a_doc)
 
pugi::xml_node RootNode ()
 
pugi::xml_node FindNode (const std::string &name)
 
 XmlPugi ()
 
virtual ~XmlPugi ()
 
void SetBuf (const void *buf, size_t sz)
 
bool IsNull (pugi::xml_node &node)
 
bool IsNull (pugi::xml_attribute &attr)
 
void LoadXmlDoc (const pugi::xml_document &doc)
 
const pugi::xml_document & doc ()
 
- Public Member Functions inherited from XmlBase
virtual ~XmlBase ()
 
 XmlBase ()
 

Private Member Functions

void SetContext (pugi::xml_node node=GNode, pugi::xml_attribute atrib=GAttr)
 

Private Attributes

uint8_t * buf_tmp_
 
size_t ts_
 
struct xmpp_buf_write writer_
 
pugi::xml_document doc_
 
pugi::xml_node node_
 
pugi::xml_attribute attrib_
 

Static Private Attributes

static pugi::xml_attribute GAttr
 
static pugi::xml_node GNode
 

Detailed Description

Definition at line 10 of file xml_pugi.h.

Constructor & Destructor Documentation

XmlPugi::XmlPugi ( )

Definition at line 17 of file xml_pugi.cc.

XmlPugi::~XmlPugi ( )
virtual

Definition at line 20 of file xml_pugi.cc.

Member Function Documentation

int XmlPugi::AddAttribute ( const std::string &  key,
const std::string &  value 
)
virtual

Implements XmlBase.

Definition at line 282 of file xml_pugi.cc.

Here is the call graph for this function:

int XmlPugi::AddChildNode ( const std::string &  key,
const std::string &  value 
)
virtual

Implements XmlBase.

Definition at line 250 of file xml_pugi.cc.

Here is the call graph for this function:

int XmlPugi::AddChildNodeAfter ( const std::string &  node_name,
const std::string &  key,
const std::string &  value 
)
virtual

Implements XmlBase.

Definition at line 266 of file xml_pugi.cc.

Here is the call graph for this function:

int XmlPugi::AddNode ( const std::string &  key,
const std::string &  value 
)
virtual

Implements XmlBase.

Definition at line 212 of file xml_pugi.cc.

Here is the call graph for this function:

void XmlPugi::AppendDoc ( const std::string &  str,
XmlBase a_doc 
)
virtual

Implements XmlBase.

Definition at line 193 of file xml_pugi.cc.

Here is the call graph for this function:

int XmlPugi::DeleteAttribute ( const std::string &  key)
virtual

Implements XmlBase.

Definition at line 299 of file xml_pugi.cc.

Here is the call graph for this function:

int XmlPugi::DeleteNode ( const std::string &  key)
virtual

Implements XmlBase.

Definition at line 228 of file xml_pugi.cc.

Here is the call graph for this function:

const pugi::xml_document& XmlPugi::doc ( )
inline

Definition at line 68 of file xml_pugi.h.

pugi::xml_node XmlPugi::FindNode ( const std::string &  name)

Definition at line 51 of file xml_pugi.cc.

bool XmlPugi::IsNull ( pugi::xml_node &  node)
inline

Definition at line 63 of file xml_pugi.h.

bool XmlPugi::IsNull ( pugi::xml_attribute &  attr)
inline

Definition at line 64 of file xml_pugi.h.

int XmlPugi::LoadDoc ( const std::string &  doc)
virtual

Implements XmlBase.

Definition at line 173 of file xml_pugi.cc.

Here is the call graph for this function:

void XmlPugi::LoadXmlDoc ( const pugi::xml_document &  doc)
inline

Definition at line 67 of file xml_pugi.h.

int XmlPugi::ModifyAttribute ( const std::string &  key,
const std::string &  value 
)
virtual

Implements XmlBase.

Definition at line 315 of file xml_pugi.cc.

Here is the call graph for this function:

int XmlPugi::ModifyNode ( const std::string &  key,
const std::string &  value 
)
virtual

Implements XmlBase.

Definition at line 238 of file xml_pugi.cc.

Here is the call graph for this function:

void XmlPugi::PrintDoc ( std::ostream &  os) const
virtual

Implements XmlBase.

Definition at line 160 of file xml_pugi.cc.

void XmlPugi::PrintDocFormatted ( std::ostream &  os) const
virtual

Definition at line 164 of file xml_pugi.cc.

const char * XmlPugi::ReadAttrib ( const std::string &  str)
virtual

Implements XmlBase.

Definition at line 114 of file xml_pugi.cc.

Here is the call graph for this function:

const char * XmlPugi::ReadChildNode ( )
virtual

Implements XmlBase.

Definition at line 82 of file xml_pugi.cc.

Here is the call graph for this function:

const char * XmlPugi::ReadChildNodeName ( )
virtual

Implements XmlBase.

Definition at line 89 of file xml_pugi.cc.

Here is the call graph for this function:

const char * XmlPugi::ReadFirstAttrib ( )
virtual

Implements XmlBase.

Definition at line 120 of file xml_pugi.cc.

Here is the call graph for this function:

const char * XmlPugi::ReadNextAttrib ( )
virtual

Implements XmlBase.

Definition at line 126 of file xml_pugi.cc.

Here is the call graph for this function:

const char * XmlPugi::ReadNextNode ( )
virtual

Implements XmlBase.

Definition at line 96 of file xml_pugi.cc.

Here is the call graph for this function:

const char * XmlPugi::ReadNextNodeName ( )
virtual

Implements XmlBase.

Definition at line 103 of file xml_pugi.cc.

Here is the call graph for this function:

const char * XmlPugi::ReadNode ( const std::string &  name)
virtual

Implements XmlBase.

Definition at line 28 of file xml_pugi.cc.

Here is the call graph for this function:

const char * XmlPugi::ReadNodeName ( const std::string &  name)
virtual

Implements XmlBase.

Definition at line 58 of file xml_pugi.cc.

Here is the call graph for this function:

const char * XmlPugi::ReadNodeValue ( )
virtual

Implements XmlBase.

Definition at line 67 of file xml_pugi.cc.

const char * XmlPugi::ReadParentName ( )
virtual

Implements XmlBase.

Definition at line 136 of file xml_pugi.cc.

Here is the call graph for this function:

void XmlPugi::RewindAttrib ( )
virtual

Implements XmlBase.

Definition at line 132 of file xml_pugi.cc.

Here is the call graph for this function:

void XmlPugi::RewindDoc ( )
virtual

Implements XmlBase.

Definition at line 189 of file xml_pugi.cc.

Here is the call graph for this function:

void XmlPugi::RewindNode ( )
virtual

Implements XmlBase.

Definition at line 110 of file xml_pugi.cc.

Here is the call graph for this function:

pugi::xml_node XmlPugi::RootNode ( )

Definition at line 24 of file xml_pugi.cc.

void XmlPugi::SetBuf ( const void *  buf,
size_t  sz 
)

Definition at line 335 of file xml_pugi.cc.

void XmlPugi::SetContext ( pugi::xml_node  node = GNode,
pugi::xml_attribute  atrib = GAttr 
)
private

Definition at line 168 of file xml_pugi.cc.

int XmlPugi::WriteDoc ( uint8_t *  buf)
virtual

Implements XmlBase.

Definition at line 142 of file xml_pugi.cc.

int XmlPugi::WriteRawDoc ( uint8_t *  buf)
virtual

Implements XmlBase.

Definition at line 151 of file xml_pugi.cc.

Member Data Documentation

pugi::xml_attribute XmlPugi::attrib_
private

Definition at line 79 of file xml_pugi.h.

uint8_t* XmlPugi::buf_tmp_
private

Definition at line 71 of file xml_pugi.h.

pugi::xml_document XmlPugi::doc_
private

Definition at line 75 of file xml_pugi.h.

pugi::xml_attribute XmlPugi::GAttr
staticprivate

Definition at line 92 of file xml_pugi.h.

pugi::xml_node XmlPugi::GNode
staticprivate

Definition at line 93 of file xml_pugi.h.

pugi::xml_node XmlPugi::node_
private

Definition at line 78 of file xml_pugi.h.

size_t XmlPugi::ts_
private

Definition at line 72 of file xml_pugi.h.

struct xmpp_buf_write XmlPugi::writer_
private

Definition at line 73 of file xml_pugi.h.


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