|
| virtual void | acceptIn (basevisitor &visitor) |
| |
| virtual void | acceptOut (basevisitor &visitor) |
| |
|
int | getInputLineNumber () |
| |
|
void | setValue (unsigned long value) |
| |
|
void | setValue (long value) |
| |
|
void | setValue (int value) |
| |
|
void | setValue (float value) |
| |
|
void | setValue (const std::string &value) |
| |
|
void | setName (const std::string &name) |
| |
|
int | getType () const |
| |
|
const std::string & | getName () const |
| |
|
const std::string & | getValue () const |
| | returns the element value as a string
|
| |
|
| operator long () const |
| | returns the element value as a long
|
| |
|
| operator int () const |
| | returns the element value as a int
|
| |
|
| operator float () const |
| | returns the element value as a float
|
| |
|
bool | operator== (const xmlelement &elt) const |
| | elements comparison
|
| |
|
bool | operator!= (const xmlelement &elt) const |
| |
|
long | add (const Sxmlattribute &attr) |
| | adds an attribute to the element
|
| |
|
const std::vector< Sxmlattribute > & | attributes () const |
| |
|
const Sxmlattribute | getAttribute (const std::string &attrname) const |
| |
|
const std::string | getAttributeValue (const std::string &attrname) const |
| |
|
long | getAttributeLongValue (const std::string &attrname, long defaultvalue) const |
| |
|
int | getAttributeIntValue (const std::string &attrname, int defaultvalue) const |
| |
|
float | getAttributeFloatValue (const std::string &attrname, float defaultvalue) const |
| |
|
ctree< xmlelement >::iterator | find (int type) |
| |
|
ctree< xmlelement >::iterator | find (int type, ctree< xmlelement >::iterator start) |
| |
|
const std::string | getValue (int subElementType) |
| |
|
int | getIntValue (int subElementType, int defaultvalue) |
| |
|
long | getLongValue (int subElementType, long defaultvalue) |
| |
|
float | getFloatValue (int subElementType, float defaultvalue) |
| |
|
bool | hasSubElement (int subElementType) |
| | returns true if subelement exists
|
| |
|
bool | hasSubElement (int subElementType, std::string value) |
| | returns true if subelement with given value exists
|
| |
| bool | empty () const |
| |
|
branchs & | elements () |
| |
|
const branchs & | elements () const |
| |
|
virtual void | push (const treePtr &t) |
| |
|
virtual int | size () const |
| |
|
iterator | begin () |
| |
|
iterator | end () |
| |
|
iterator | erase (iterator i) |
| |
|
iterator | insert (iterator before, const treePtr &value) |
| |
|
literator | lbegin () |
| |
|
literator | lend () |
| |
|
unsigned | refs () const |
| | gives the reference count of the object
|
| |
|
void | addReference () |
| | addReference increments the ref count and checks for refCount overflow
|
| |
|
void | removeReference () |
| | removeReference delete the object when refCount is zero
|
| |
An element is represented by its name, its value, the lists of its attributes and its enclosed elements. Attributes and elements must be added in the required order.