#include <XMLStack.h>
Inheritance diagram for XMLStackNode::
Public Types | |
typedef XMLStackNode<_E, _Tr, _A> | _XMLStackNode |
typedef XMLStackDocument<_E, _Tr, _A> | _XMLStackDocument |
typedef XMLStackAttribute< _E, _Tr, _A> | _XMLStackAttribute |
typedef std::basic_string< _E, _Tr, _A> | _XMLStackString |
Public Methods | |
XMLStackNode (_XMLStackDocument *Doc, const _XMLStackString &Name) | |
Constructor. More... | |
virtual | ~XMLStackNode () |
Destructor. | |
const _XMLStackString& | getNodeName (void) const |
Returns the qualified node name (namespace prefix and local name). | |
_XMLStackString | getPrefix (void) const |
Returns the namespace prefix, if there is one. | |
_XMLStackString | getLocalName (void) const |
Returns the node's local name without the prefix. | |
virtual _XMLStackAttribute& | createAttribute (const _XMLStackString &Name, const _XMLStackString &NamespaceURI=_XMLStackString()) |
Creates an attribute node. | |
virtual _XMLStackAttribute& | getAttribute (const _XMLStackString &Name) |
Returns an existing attribute node based on the qualified name. | |
virtual bool | hasAttribute (const _XMLStackString &Name) const |
Returns true if a node with the given qualified name exists. | |
virtual void | setValue (const _XMLStackString &Value) |
Convenience function to assign a "value" to a node. 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) |
_XMLStackNode& | operator= (const _XMLStackString &Value) |
Convenience operator for setValue(). | |
_XMLStackNode& | operator= (unsigned long &Value) |
Convenience operator for setValue(). | |
_XMLStackNode& | operator= (long Value) |
Convenience operator for setValue(). | |
_XMLStackNode& | operator= (unsigned int Value) |
Convenience operator for setValue(). | |
_XMLStackNode& | operator= (int Value) |
Convenience operator for setValue(). | |
_XMLStackNode& | operator= (unsigned short Value) |
Convenience operator for setValue(). | |
_XMLStackNode& | operator= (short Value) |
Convenience operator for setValue(). | |
_XMLStackNode& | operator= (signed char Value) |
Convenience operator for setValue(). | |
_XMLStackNode& | operator= (char Value) |
Convenience operator for setValue(). | |
_XMLStackNode& | operator= (unsigned char Value) |
Convenience operator for setValue(). | |
_XMLStackNode& | operator= (double Value) |
Convenience operator for setValue(). | |
_XMLStackNode& | operator= (float Value) |
Convenience operator for setValue(). | |
Protected Types | |
typedef std::basic_stringstream< _E, _Tr, _A> | _XMLStackStringStream |
Protected Methods | |
virtual bool | childNodePushed (void) |
virtual void | popped (void) |
virtual _XMLStackNode* | clone (void) const=0 |
_XMLStackString | convertValue (unsigned long Value) |
_XMLStackString | convertValue (long Value) |
_XMLStackString | convertValue (unsigned int Value) |
_XMLStackString | convertValue (int Value) |
_XMLStackString | convertValue (unsigned short Value) |
_XMLStackString | convertValue (short Value) |
_XMLStackString | convertValue (signed char Value) |
_XMLStackString | convertValue (char Value) |
_XMLStackString | convertValue (unsigned char Value) |
_XMLStackString | convertValue (double Value, int Scale) |
_XMLStackString | convertValue (float Value, int Scale) |
void | appendXML (const _XMLStackString &XML) |
_XMLStackString& | getBuffer (void) |
Protected Attributes | |
_XMLStackDocument* | m_Doc |
_XMLStackString | m_Name |
Friends | |
class | XMLStackDocument< _E, _Tr, _A > |
Definition at line 51 of file XMLStack.h.
|
Definition at line 56 of file XMLStack.h. Referenced by XMLStackAttribute::clone(), and XMLStackElement::createAttribute(). |
|
Definition at line 55 of file XMLStack.h. |
|
Definition at line 54 of file XMLStack.h. |
|
Definition at line 57 of file XMLStack.h. |
|
Definition at line 278 of file XMLStack.h. |
|
Constructor.
Definition at line 68 of file XMLStack.h. |
|
Destructor.
Definition at line 72 of file XMLStack.h. |
|
Definition at line 362 of file XMLStack.h. Referenced by XMLStackRawXML::XMLStackRawXML(), XMLStackRawXML::popped(), XMLStackProcessingInstruction::popped(), XMLStackComment::popped(), XMLStackCDATASection::popped(), XMLStackText::popped(), XMLStackElement::popped(), and XMLStackElement::writeStartTag(). |
|
Reimplemented in XMLStackElement, and XMLStackRawXML. Definition at line 274 of file XMLStack.h. Referenced by XMLStackDocument::pushCDATASection(), XMLStackDocument::pushComment(), XMLStackDocument::pushProcessingInstruction(), and XMLStackDocument::pushText(). |
|
Reimplemented in XMLStackElement, XMLStackAttribute, XMLStackText, XMLStackCDATASection, XMLStackComment, XMLStackProcessingInstruction, and XMLStackRawXML. |
|
Definition at line 350 of file XMLStack.h. |
|
Definition at line 343 of file XMLStack.h. |
|
Definition at line 336 of file XMLStack.h. |
|
Definition at line 329 of file XMLStack.h. |
|
Definition at line 322 of file XMLStack.h. |
|
Definition at line 315 of file XMLStack.h. |
|
Definition at line 308 of file XMLStack.h. |
|
Definition at line 301 of file XMLStack.h. |
|
Definition at line 294 of file XMLStack.h. |
|
Definition at line 287 of file XMLStack.h. |
|
Definition at line 280 of file XMLStack.h. Referenced by XMLStackProcessingInstruction::setValue(), XMLStackComment::setValue(), XMLStackCDATASection::setValue(), XMLStackText::setValue(), XMLStackAttribute::setValue(), and XMLStackElement::setValue(). |
|
Creates an attribute node.
Reimplemented in XMLStackElement. Definition at line 111 of file XMLStack.h. |
|
Returns an existing attribute node based on the qualified name.
Reimplemented in XMLStackElement. Definition at line 118 of file XMLStack.h. |
|
Definition at line 368 of file XMLStack.h. Referenced by XMLStackElement::writeStartTag(). |
|
Returns the node's local name without the prefix.
Definition at line 92 of file XMLStack.h. |
|
Returns the qualified node name (namespace prefix and local name).
Definition at line 75 of file XMLStack.h. |
|
Returns the namespace prefix, if there is one.
Definition at line 78 of file XMLStack.h. Referenced by XMLStackElement::writeStartTag(), and XMLStackAttribute::xml(). |
|
Returns true if a node with the given qualified name exists.
Reimplemented in XMLStackElement. Definition at line 124 of file XMLStack.h. |
|
Convenience operator for setValue().
Reimplemented in XMLStackElement, XMLStackAttribute, XMLStackText, XMLStackCDATASection, XMLStackComment, and XMLStackProcessingInstruction. Definition at line 268 of file XMLStack.h. |
|
Convenience operator for setValue().
Reimplemented in XMLStackElement, XMLStackAttribute, XMLStackText, XMLStackCDATASection, XMLStackComment, and XMLStackProcessingInstruction. Definition at line 262 of file XMLStack.h. |
|
Convenience operator for setValue().
Reimplemented in XMLStackElement, XMLStackAttribute, XMLStackText, XMLStackCDATASection, XMLStackComment, and XMLStackProcessingInstruction. Definition at line 256 of file XMLStack.h. |
|
Convenience operator for setValue().
Reimplemented in XMLStackElement, XMLStackAttribute, XMLStackText, XMLStackCDATASection, XMLStackComment, and XMLStackProcessingInstruction. Definition at line 250 of file XMLStack.h. |
|
Convenience operator for setValue().
Reimplemented in XMLStackElement, XMLStackAttribute, XMLStackText, XMLStackCDATASection, XMLStackComment, and XMLStackProcessingInstruction. Definition at line 244 of file XMLStack.h. |
|
Convenience operator for setValue().
Reimplemented in XMLStackElement, XMLStackAttribute, XMLStackText, XMLStackCDATASection, XMLStackComment, and XMLStackProcessingInstruction. Definition at line 238 of file XMLStack.h. |
|
Convenience operator for setValue().
Reimplemented in XMLStackElement, XMLStackAttribute, XMLStackText, XMLStackCDATASection, XMLStackComment, and XMLStackProcessingInstruction. Definition at line 232 of file XMLStack.h. |
|
Convenience operator for setValue().
Reimplemented in XMLStackElement, XMLStackAttribute, XMLStackText, XMLStackCDATASection, XMLStackComment, and XMLStackProcessingInstruction. Definition at line 226 of file XMLStack.h. |
|
Convenience operator for setValue().
Reimplemented in XMLStackElement, XMLStackAttribute, XMLStackText, XMLStackCDATASection, XMLStackComment, and XMLStackProcessingInstruction. Definition at line 220 of file XMLStack.h. |
|
Convenience operator for setValue().
Reimplemented in XMLStackElement, XMLStackAttribute, XMLStackText, XMLStackCDATASection, XMLStackComment, and XMLStackProcessingInstruction. Definition at line 214 of file XMLStack.h. |
|
Convenience operator for setValue().
Reimplemented in XMLStackElement, XMLStackAttribute, XMLStackText, XMLStackCDATASection, XMLStackComment, and XMLStackProcessingInstruction. Definition at line 208 of file XMLStack.h. |
|
Convenience operator for setValue().
Reimplemented in XMLStackElement, XMLStackAttribute, XMLStackText, XMLStackCDATASection, XMLStackComment, and XMLStackProcessingInstruction. Definition at line 202 of file XMLStack.h. |
|
Reimplemented in XMLStackElement, XMLStackText, XMLStackCDATASection, XMLStackComment, XMLStackProcessingInstruction, and XMLStackRawXML. Definition at line 275 of file XMLStack.h. |
|
Reimplemented in XMLStackElement, XMLStackAttribute, XMLStackText, XMLStackCDATASection, XMLStackComment, and XMLStackProcessingInstruction. Definition at line 195 of file XMLStack.h. |
|
Reimplemented in XMLStackElement, XMLStackAttribute, XMLStackText, XMLStackCDATASection, XMLStackComment, and XMLStackProcessingInstruction. Definition at line 190 of file XMLStack.h. |
|
Reimplemented in XMLStackElement, XMLStackAttribute, XMLStackText, XMLStackCDATASection, XMLStackComment, and XMLStackProcessingInstruction. Definition at line 185 of file XMLStack.h. |
|
Reimplemented in XMLStackElement, XMLStackAttribute, XMLStackText, XMLStackCDATASection, XMLStackComment, and XMLStackProcessingInstruction. Definition at line 180 of file XMLStack.h. |
|
Reimplemented in XMLStackElement, XMLStackAttribute, XMLStackText, XMLStackCDATASection, XMLStackComment, and XMLStackProcessingInstruction. Definition at line 175 of file XMLStack.h. |
|
Reimplemented in XMLStackElement, XMLStackAttribute, XMLStackText, XMLStackCDATASection, XMLStackComment, and XMLStackProcessingInstruction. Definition at line 170 of file XMLStack.h. |
|
Reimplemented in XMLStackElement, XMLStackAttribute, XMLStackText, XMLStackCDATASection, XMLStackComment, and XMLStackProcessingInstruction. Definition at line 165 of file XMLStack.h. |
|
Reimplemented in XMLStackElement, XMLStackAttribute, XMLStackText, XMLStackCDATASection, XMLStackComment, and XMLStackProcessingInstruction. Definition at line 160 of file XMLStack.h. |
|
Reimplemented in XMLStackElement, XMLStackAttribute, XMLStackText, XMLStackCDATASection, XMLStackComment, and XMLStackProcessingInstruction. Definition at line 155 of file XMLStack.h. |
|
Reimplemented in XMLStackElement, XMLStackAttribute, XMLStackText, XMLStackCDATASection, XMLStackComment, and XMLStackProcessingInstruction. Definition at line 150 of file XMLStack.h. |
|
Reimplemented in XMLStackElement, XMLStackAttribute, XMLStackText, XMLStackCDATASection, XMLStackComment, and XMLStackProcessingInstruction. Definition at line 145 of file XMLStack.h. |
|
Convenience function to assign a "value" to a node. These functions are intended to be defined by derived classes, where appropriate, and to assign the values passed in as befits that node type. For instance, element nodes would push and pop a child text node with the given value. When these calls don't make sense for a derived class, they shouldn't implement them. The default behavior is to throw an XMLStackException(). Reimplemented in XMLStackElement, XMLStackAttribute, XMLStackText, XMLStackCDATASection, XMLStackComment, and XMLStackProcessingInstruction. Definition at line 140 of file XMLStack.h. Referenced by operator=(). |
|
Definition at line 375 of file XMLStack.h. |
|
Definition at line 370 of file XMLStack.h. |
|
Definition at line 371 of file XMLStack.h. |