Sourceforge.net - The VCF's Project Host
   The VCF Website Home   |   Online Discussion Forums   |   Sourceforge.net Project Page   

VCF::XmlDocument Class Reference

#include <XMLKit.h>

Inheritance diagram for VCF::XmlDocument:

VCF::Attachable< xmlDocPtr, XmlDocument > VCF::Object List of all members.

Public Types

typedef Attachable< xmlDocPtr,
XmlDocument
BaseT

Public Member Functions

 XmlDocument ()
 XmlDocument (xmlDocPtr val)
 XmlDocument (const XmlDocument &val)
XmlDocumentoperator= (xmlDocPtr rhs)
void setXML (const String &xml)
XmlNode getRoot () const
XmlNode setRoot (const XmlNode &root)
XmlDocumentcopy (bool recursive) const
XmlNode newCDATABlock (const String &data)
XmlNode newCharRef (const String &name)
XmlNode newComment (const String &comment)
XmlNode newFragment ()
XmlNode newNode (const XmlNamespace &ns, const String &name, const String &content="")
XmlNode newNode (const String &name, const String &content="")
XmlNode newRawNode (const XmlNamespace &ns, const String &name, const String &content)
XmlNode newRawNode (const String &name, const String &content)
XmlNode newProcessingInstruction (const String &name, const String &content)
VariantData matches (const String &xpathQuery, std::vector< XmlNode > &found)
XmlNode select (const String &xpathQuery)
void load (const String &fileName)
virtual String toString () const
 returns a string representation of the object
virtual Objectclone (bool deep=false) const
 Makes a complete clone of this object.
void dump ()

Static Public Member Functions

static void freeResource (xmlDocPtr res)
static XmlDocumentnewDocument ()

Member Typedef Documentation

typedef Attachable<xmlDocPtr,XmlDocument> VCF::XmlDocument::BaseT
 


Constructor & Destructor Documentation

VCF::XmlDocument::XmlDocument  )  [inline]
 

VCF::XmlDocument::XmlDocument xmlDocPtr  val  )  [inline]
 

VCF::XmlDocument::XmlDocument const XmlDocument val  )  [inline]
 


Member Function Documentation

virtual Object* VCF::XmlDocument::clone bool  deep = false  )  const [virtual]
 

Makes a complete clone of this object.

A typical implementation might be:

    virtual Object* clone( bool deep ) {
        return new MyObject( this );
    }
In which the implementer simply creates a new instance on the heap and calls the copy constructor. Objects which support cloning should also have a copy constructor defined as well.

Parameters:
bool deep if deep is true then any object instances that this object owns should probably be cloned as well, with full new copies made. Otherwise it would be acceptable to simply copy the pointer values. The default value is for deep cloning to be false.
Returns:
Object a new instance that should be an copy of this. If the object doesn't support cloning the return will value will be NULL.

Reimplemented from VCF::Object.

XmlDocument* VCF::XmlDocument::copy bool  recursive  )  const
 

void VCF::XmlDocument::dump  ) 
 

static void VCF::XmlDocument::freeResource xmlDocPtr  res  )  [static]
 

XmlNode VCF::XmlDocument::getRoot  )  const
 

void VCF::XmlDocument::load const String fileName  ) 
 

VariantData VCF::XmlDocument::matches const String xpathQuery,
std::vector< XmlNode > &  found
 

XmlNode VCF::XmlDocument::newCDATABlock const String data  ) 
 

XmlNode VCF::XmlDocument::newCharRef const String name  ) 
 

XmlNode VCF::XmlDocument::newComment const String comment  ) 
 

static XmlDocument* VCF::XmlDocument::newDocument  )  [static]
 

XmlNode VCF::XmlDocument::newFragment  ) 
 

XmlNode VCF::XmlDocument::newNode const String name,
const String content = ""
 

XmlNode VCF::XmlDocument::newNode const XmlNamespace ns,
const String name,
const String content = ""
 

XmlNode VCF::XmlDocument::newProcessingInstruction const String name,
const String content
 

XmlNode VCF::XmlDocument::newRawNode const String name,
const String content
 

XmlNode VCF::XmlDocument::newRawNode const XmlNamespace ns,
const String name,
const String content
 

XmlDocument& VCF::XmlDocument::operator= xmlDocPtr  rhs  )  [inline]
 

XmlNode VCF::XmlDocument::select const String xpathQuery  ) 
 

XmlNode VCF::XmlDocument::setRoot const XmlNode root  ) 
 

void VCF::XmlDocument::setXML const String xml  ) 
 

virtual String VCF::XmlDocument::toString  )  const [virtual]
 

returns a string representation of the object

Reimplemented from VCF::Object.


The documentation for this class was generated from the following file:
   Comments or Suggestions?    License Information