#include <XMLStack.h>
Inheritance diagram for XMLStackElement::
Public Types | |
typedef XMLStackElement<_E, _Tr, _A> | _XMLStackElement |
Public Methods | |
XMLStackElement (_XMLStackDocument *Doc, const _XMLStackString &Name) | |
Constructor which takes a node name. More... | |
XMLStackElement (_XMLStackDocument *Doc, const _XMLStackString &Name, const _XMLStackString &NamespaceURI) | |
Constructor which takes both a node name and a NamespaceURI. More... | |
virtual | ~XMLStackElement () |
Destructor. | |
const _XMLStackString& | getNamespaceURI (void) const |
Returns the URI for the namespace (if any). | |
virtual void | setValue (const _XMLStackString &Value) |
Convenience method that creates a text node with Value. More... | |
virtual void | setValue (unsigned long Value) |
virtual void | setValue (long Value) |
virtual void | setValue (unsigned int Value) |
virtual void | setValue (int Value) |
virtual void | setValue (unsigned short Value) |
virtual void | setValue (short Value) |
virtual void | setValue (signed char Value) |
virtual void | setValue (char Value) |
virtual void | setValue (unsigned char Value) |
virtual void | setValue (double Value, int Scale=6) |
virtual void | setValue (float Value, int Scale=6) |
virtual _XMLStackAttribute& | createAttribute (const _XMLStackString &Name, const _XMLStackString &NamespaceURI=_XMLStackString()) |
Creates an attribute node for this element node. More... | |
virtual _XMLStackAttribute& | getAttribute (const _XMLStackString &Name) |
Returns the attribute node with the specified name. More... | |
virtual bool | hasAttribute (const _XMLStackString &Name) const |
Returns true if the attribute node exists, false otherwise. More... | |
_XMLStackElement& | operator= (const _XMLStackString &Value) |
Convenience operator for setValue(). | |
_XMLStackElement& | operator= (unsigned long &Value) |
Convenience operator for setValue(). | |
_XMLStackElement& | operator= (long Value) |
Convenience operator for setValue(). | |
_XMLStackElement& | operator= (unsigned int Value) |
Convenience operator for setValue(). | |
_XMLStackElement& | operator= (int Value) |
Convenience operator for setValue(). | |
_XMLStackElement& | operator= (unsigned short Value) |
Convenience operator for setValue(). | |
_XMLStackElement& | operator= (short Value) |
Convenience operator for setValue(). | |
_XMLStackElement& | operator= (signed char Value) |
Convenience operator for setValue(). | |
_XMLStackElement& | operator= (char Value) |
Convenience operator for setValue(). | |
_XMLStackElement& | operator= (unsigned char Value) |
Convenience operator for setValue(). | |
_XMLStackElement& | operator= (double Value) |
Convenience operator for setValue(). | |
_XMLStackElement& | operator= (float Value) |
Convenience operator for setValue(). | |
Protected Types | |
typedef std::map<_XMLStackString, _XMLStackAttribute *> | Attributes |
typedef std::vector<_XMLStackAttribute *> | AttributesVec |
Protected Methods | |
virtual bool | childNodePushed (void) |
void | writeStartTag (bool EndTag=false) |
virtual void | popped (void) |
virtual _XMLStackNode* | clone (void) const |
void | checkName (void) const |
Protected Attributes | |
_XMLStackString | m_NamespaceURI |
Attributes | m_Attributes |
AttributesVec | m_AttributesVec |
size_t | m_StartTagBegin |
size_t | m_StartTagEnd |
bool | m_Dirty |
bool | m_NSDefined |
Element nodes are the most common node type. They are also the only node type that supports attribute nodes.
Definition at line 385 of file XMLStack.h.
|
Definition at line 683 of file XMLStack.h. |
|
Definition at line 684 of file XMLStack.h. |
|
Definition at line 388 of file XMLStack.h. Referenced by clone(). |
|
Constructor which takes a node name. The element name must conform to the rules for valid element names. Only some basic checking is done to make sure the name is valid, and only when the _DEBUG preprocessor symbol is defined.
Definition at line 402 of file XMLStack.h. |
|
Constructor which takes both a node name and a NamespaceURI. The element name must conform to the rules for valid element names. Only some basic checking is done to make sure the name is valid, and only when the _DEBUG preprocessor symbol is defined. If a NamespaceURI is provided, no checking is performed to see if it was declared in an ancestor element; it will be written out regardless. If you want the element in a namespace but don't want the xmlns declaration again, only prefix the element name with the namespace qualifier (e.g., "NamespaceQualifier:ElementName"). Don't provide the NamespaceURI.
Definition at line 440 of file XMLStack.h. |
|
Destructor.
Definition at line 456 of file XMLStack.h. |
|
Definition at line 802 of file XMLStack.h. Referenced by XMLStackElement(). |
|
Reimplemented from XMLStackNode. Definition at line 677 of file XMLStack.h. Referenced by XMLStackDocument::pushElement(). |
|
Reimplemented from XMLStackNode. Definition at line 797 of file XMLStack.h. |
|
Creates an attribute node for this element node.
Reimplemented from XMLStackNode. Definition at line 529 of file XMLStack.h. |
|
Returns the attribute node with the specified name.
Reimplemented from XMLStackNode. Definition at line 560 of file XMLStack.h. |
|
Returns the URI for the namespace (if any).
Definition at line 467 of file XMLStack.h. |
|
Returns true if the attribute node exists, false otherwise.
Reimplemented from XMLStackNode. Definition at line 582 of file XMLStack.h. |
|
Convenience operator for setValue().
Reimplemented from XMLStackNode. Definition at line 669 of file XMLStack.h. |
|
Convenience operator for setValue().
Reimplemented from XMLStackNode. Definition at line 662 of file XMLStack.h. |
|
Convenience operator for setValue().
Reimplemented from XMLStackNode. Definition at line 655 of file XMLStack.h. |
|
Convenience operator for setValue().
Reimplemented from XMLStackNode. Definition at line 648 of file XMLStack.h. |
|
Convenience operator for setValue().
Reimplemented from XMLStackNode. Definition at line 641 of file XMLStack.h. |
|
Convenience operator for setValue().
Reimplemented from XMLStackNode. Definition at line 634 of file XMLStack.h. |
|
Convenience operator for setValue().
Reimplemented from XMLStackNode. Definition at line 627 of file XMLStack.h. |
|
Convenience operator for setValue().
Reimplemented from XMLStackNode. Definition at line 620 of file XMLStack.h. |
|
Convenience operator for setValue().
Reimplemented from XMLStackNode. Definition at line 613 of file XMLStack.h. |
|
Convenience operator for setValue().
Reimplemented from XMLStackNode. Definition at line 606 of file XMLStack.h. |
|
Convenience operator for setValue().
Reimplemented from XMLStackNode. Definition at line 599 of file XMLStack.h. |
|
Convenience operator for setValue().
Reimplemented from XMLStackNode. Definition at line 592 of file XMLStack.h. |
|
Reimplemented from XMLStackNode. Definition at line 759 of file XMLStack.h. |
|
Reimplemented from XMLStackNode. Definition at line 503 of file XMLStack.h. |
|
Reimplemented from XMLStackNode. Definition at line 499 of file XMLStack.h. |
|
Reimplemented from XMLStackNode. Definition at line 498 of file XMLStack.h. |
|
Reimplemented from XMLStackNode. Definition at line 497 of file XMLStack.h. |
|
Reimplemented from XMLStackNode. Definition at line 496 of file XMLStack.h. |
|
Reimplemented from XMLStackNode. Definition at line 495 of file XMLStack.h. |
|
Reimplemented from XMLStackNode. Definition at line 494 of file XMLStack.h. |
|
Reimplemented from XMLStackNode. Definition at line 493 of file XMLStack.h. |
|
Reimplemented from XMLStackNode. Definition at line 492 of file XMLStack.h. |
|
Reimplemented from XMLStackNode. Definition at line 491 of file XMLStack.h. |
|
Reimplemented from XMLStackNode. Definition at line 490 of file XMLStack.h. |
|
Convenience method that creates a text node with Value. This method pushes a text node onto the stack, assigns Value to it, and then pops it back off.
Reimplemented from XMLStackNode. Definition at line 485 of file XMLStack.h. |
|
Definition at line 694 of file XMLStack.h. Referenced by childNodePushed(), and popped(). |
|
Definition at line 687 of file XMLStack.h. |
|
Definition at line 688 of file XMLStack.h. |
|
Definition at line 691 of file XMLStack.h. |
|
Definition at line 692 of file XMLStack.h. |
|
Definition at line 686 of file XMLStack.h. |
|
Definition at line 689 of file XMLStack.h. |
|
Definition at line 690 of file XMLStack.h. |