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

VCF::XmlNode Class Reference

#include <XMLKit.h>

Inheritance diagram for VCF::XmlNode:

VCF::Attachable< xmlNodePtr, XmlNode > VCF::Object List of all members.

Public Types

typedef Attachable< xmlNodePtr,
XmlNode
BaseT
enum  PreservesSpace { psDefault = 0, psPreserves = 1, psNotInherited = -1 }

Public Member Functions

 XmlNode ()
 XmlNode (xmlNodePtr val)
 XmlNode (const XmlNode &val)
XmlNodeoperator= (xmlNodePtr rhs)
bool getChildren (std::vector< XmlNode > &nodes) const
bool hasChildren () const
size_t getChildCount () const
XmlNode getParent () const
XmlNode getChild (const String &name) const
XMLNodeType getType () const
String getPath () const
XmlNode copy (bool deep) const
XmlNode copyList () const
String getAttribute (const String &name) const
void setNamespaceAttr (const XmlNamespace &ns, const String &name, const String &value)
void setAttribute (const String &name, const String &value)
void setAttributeAsVariant (const String &name, const VariantData &value)
bool empty () const
String getContent () const
String getLang () const
String getBase () const
void setBase (const String &val)
PreservesSpace getPreservesSpace () const
bool isText () const
int getLineNumber () const
void setBaseURI (const String &val)
void setContent (const String &val)
void setLang (const String &val)
void setName (const String &val)
String getName () const
int reconcileNamespaces () const
XmlDocument getDocument () const
void setDocument (const XmlDocument &)
bool getNamespaceList (std::vector< XmlNamespace > &namespaces) const
void setNamespace (const XmlNamespace &ns)
XmlNamespace searchNamespace (const String &ns)
XmlNamespace searchNamespaceByHRef (const String &href)
XmlNodecopy (const XmlDocument &doc, bool extended)
void addChild (XmlNode &child)
void addNextSibling (XmlNode &element)
void addPrevSibling (XmlNode &element)
void addSibling (XmlNode &element)
virtual String toString () const
 returns a string representation of the object
virtual Objectclone (bool deep=false) const
 Makes a complete clone of this object.

Static Public Member Functions

static void freeResource (xmlNodePtr res)

Member Typedef Documentation

typedef Attachable<xmlNodePtr,XmlNode> VCF::XmlNode::BaseT
 


Member Enumeration Documentation

enum VCF::XmlNode::PreservesSpace
 

Enumerator:
psDefault 
psPreserves 
psNotInherited 


Constructor & Destructor Documentation

VCF::XmlNode::XmlNode  )  [inline]
 

VCF::XmlNode::XmlNode xmlNodePtr  val  )  [inline]
 

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


Member Function Documentation

void VCF::XmlNode::addChild XmlNode child  ) 
 

void VCF::XmlNode::addNextSibling XmlNode element  ) 
 

void VCF::XmlNode::addPrevSibling XmlNode element  ) 
 

void VCF::XmlNode::addSibling XmlNode element  ) 
 

virtual Object* VCF::XmlNode::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.

XmlNode* VCF::XmlNode::copy const XmlDocument doc,
bool  extended
 

XmlNode VCF::XmlNode::copy bool  deep  )  const
 

XmlNode VCF::XmlNode::copyList  )  const
 

bool VCF::XmlNode::empty  )  const
 

static void VCF::XmlNode::freeResource xmlNodePtr  res  )  [static]
 

String VCF::XmlNode::getAttribute const String name  )  const
 

String VCF::XmlNode::getBase  )  const
 

XmlNode VCF::XmlNode::getChild const String name  )  const
 

size_t VCF::XmlNode::getChildCount  )  const
 

bool VCF::XmlNode::getChildren std::vector< XmlNode > &  nodes  )  const
 

String VCF::XmlNode::getContent  )  const
 

XmlDocument VCF::XmlNode::getDocument  )  const
 

String VCF::XmlNode::getLang  )  const
 

int VCF::XmlNode::getLineNumber  )  const
 

String VCF::XmlNode::getName  )  const
 

bool VCF::XmlNode::getNamespaceList std::vector< XmlNamespace > &  namespaces  )  const
 

XmlNode VCF::XmlNode::getParent  )  const
 

String VCF::XmlNode::getPath  )  const
 

PreservesSpace VCF::XmlNode::getPreservesSpace  )  const
 

XMLNodeType VCF::XmlNode::getType  )  const
 

bool VCF::XmlNode::hasChildren  )  const
 

bool VCF::XmlNode::isText  )  const
 

XmlNode& VCF::XmlNode::operator= xmlNodePtr  rhs  )  [inline]
 

int VCF::XmlNode::reconcileNamespaces  )  const
 

XmlNamespace VCF::XmlNode::searchNamespace const String ns  ) 
 

XmlNamespace VCF::XmlNode::searchNamespaceByHRef const String href  ) 
 

void VCF::XmlNode::setAttribute const String name,
const String value
 

void VCF::XmlNode::setAttributeAsVariant const String name,
const VariantData value
 

void VCF::XmlNode::setBase const String val  ) 
 

void VCF::XmlNode::setBaseURI const String val  ) 
 

void VCF::XmlNode::setContent const String val  ) 
 

void VCF::XmlNode::setDocument const XmlDocument  ) 
 

void VCF::XmlNode::setLang const String val  ) 
 

void VCF::XmlNode::setName const String val  ) 
 

void VCF::XmlNode::setNamespace const XmlNamespace ns  ) 
 

void VCF::XmlNode::setNamespaceAttr const XmlNamespace ns,
const String name,
const String value
 

virtual String VCF::XmlNode::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