Logo Search packages:      
Sourcecode: gabber version File versions  Download package

judo::Element Class Reference

#include <judo.hpp>

Inheritance diagram for judo::Element:

judo::Node

List of all members.


Detailed Description

XML Element representation class

Definition at line 234 of file judo.hpp.


Public Types

typedef std::list< Node * >
::const_iterator 
const_iterator
typedef std::list< Node * >
::iterator 
iterator
enum  Type { ntElement, ntCDATA }

Public Member Functions

void accumulate (XMLAccumulator &acc) const
CDATAaddCDATA (const char *data, int datasz, bool escaped=false)
ElementaddElement (const std::string &name, const std::string &cdata, bool escaped=false)
ElementaddElement (const std::string &name, const char **attribs=NULL)
void appendChild (Node *child)
const_iterator begin () const
iterator begin ()
bool cmpAttrib (const std::string &name, const std::string &value) const
void delAttrib (const std::string &name)
NodedetachChild (iterator it)
 Element (const Element &e)
 Element (const std::string &name, const char **attribs=NULL)
void Element::erase (Element::iterator it)
bool empty () const
const_iterator end () const
iterator end ()
void eraseElement (const std::string &name)
const_iterator find (const std::string &name, Node::Type type=Node::ntElement) const
iterator find (const std::string &name, Node::Type type=Node::ntElement)
const ElementfindElement (const std::string &name) const
ElementfindElement (const std::string &name)
std::string getAttrib (const std::string &name) const
std::string getCDATA () const
std::string getChildCData (const std::string &name) const
int getChildCDataAsInt (const std::string &name, int defaultvalue) const
const std::string & getName () const
Node::Type getType () const
Elementoperator= (const Element &e)
void putAttrib (const std::string &name, const std::string &value)
int size () const
std::string toString () const
std::string toStringEx (bool recursive=false, bool closetag=false) const

Protected Attributes

std::map< std::string,
std::string > 
_attribs
std::list< Node * > _children
std::string _name
Node::Type _type

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

Generated by  Doxygen 1.6.0   Back to index