#include <XMLStack.h>
Inheritance diagram for XMLStackAttribute::
Public Methods | |
XMLStackAttribute (_XMLStackDocument *Doc, const _XMLStackString &Name, const _XMLStackString &NamespaceURI=_XMLStackString()) | |
Constructor which takes both an attribute name and an optional namespaceURI. More... | |
virtual | ~XMLStackAttribute () |
Destructor. | |
const _XMLStackString& | getNamespaceURI (void) const |
Returns the URI for the namespace (if any). | |
virtual void | setValue (const _XMLStackString &Value) |
Sets the value for the attribute 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) |
_XMLStackString | xml (void) const |
Returns the XML for the attribute node. | |
bool | isDirty (void) const |
Returns true if the node has been modified. | |
void | setDirty (bool Dirty) |
Sets the dirty flag to the value passed in. | |
_XMLStackAttribute& | operator= (const _XMLStackString &Value) |
Convenience operator for setValue(). | |
_XMLStackAttribute& | operator= (unsigned long &Value) |
Convenience operator for setValue(). | |
_XMLStackAttribute& | operator= (long Value) |
Convenience operator for setValue(). | |
_XMLStackAttribute& | operator= (unsigned int Value) |
Convenience operator for setValue(). | |
_XMLStackAttribute& | operator= (int Value) |
Convenience operator for setValue(). | |
_XMLStackAttribute& | operator= (unsigned short Value) |
Convenience operator for setValue(). | |
_XMLStackAttribute& | operator= (short Value) |
Convenience operator for setValue(). | |
_XMLStackAttribute& | operator= (signed char Value) |
Convenience operator for setValue(). | |
_XMLStackAttribute& | operator= (char Value) |
Convenience operator for setValue(). | |
_XMLStackAttribute& | operator= (unsigned char Value) |
Convenience operator for setValue(). | |
_XMLStackAttribute& | operator= (double Value) |
Convenience operator for setValue(). | |
_XMLStackAttribute& | operator= (float Value) |
Convenience operator for setValue(). | |
Protected Methods | |
virtual _XMLStackNode* | clone (void) const |
Protected Attributes | |
_XMLStackString | m_NamespaceURI |
_XMLStackString | m_Value |
bool | m_Dirty |
Friends | |
class | XMLStackElement< _E, _Tr, _A > |
Definition at line 862 of file XMLStack.h.
|
Constructor which takes both an attribute name and an optional namespaceURI. The attribute 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 attribute in a namespace but don't want the xmlns declaration again, only prefix the attribute name with the namespace qualifier (e.g., "NamespaceQualifier:AttributeName"). Don't provide the NamespaceURI.
Definition at line 888 of file XMLStack.h. |
|
Destructor.
Definition at line 951 of file XMLStack.h. |
|
Reimplemented from XMLStackNode. Definition at line 1138 of file XMLStack.h. |
|
Returns the URI for the namespace (if any).
Definition at line 954 of file XMLStack.h. |
|
Returns true if the node has been modified.
Definition at line 1042 of file XMLStack.h. |
|
Convenience operator for setValue().
Reimplemented from XMLStackNode. Definition at line 1125 of file XMLStack.h. |
|
Convenience operator for setValue().
Reimplemented from XMLStackNode. Definition at line 1118 of file XMLStack.h. |
|
Convenience operator for setValue().
Reimplemented from XMLStackNode. Definition at line 1111 of file XMLStack.h. |
|
Convenience operator for setValue().
Reimplemented from XMLStackNode. Definition at line 1104 of file XMLStack.h. |
|
Convenience operator for setValue().
Reimplemented from XMLStackNode. Definition at line 1097 of file XMLStack.h. |
|
Convenience operator for setValue().
Reimplemented from XMLStackNode. Definition at line 1090 of file XMLStack.h. |
|
Convenience operator for setValue().
Reimplemented from XMLStackNode. Definition at line 1083 of file XMLStack.h. |
|
Convenience operator for setValue().
Reimplemented from XMLStackNode. Definition at line 1076 of file XMLStack.h. |
|
Convenience operator for setValue().
Reimplemented from XMLStackNode. Definition at line 1069 of file XMLStack.h. |
|
Convenience operator for setValue().
Reimplemented from XMLStackNode. Definition at line 1062 of file XMLStack.h. |
|
Convenience operator for setValue().
Reimplemented from XMLStackNode. Definition at line 1055 of file XMLStack.h. |
|
Convenience operator for setValue().
Reimplemented from XMLStackNode. Definition at line 1048 of file XMLStack.h. |
|
Sets the dirty flag to the value passed in.
Definition at line 1045 of file XMLStack.h. |
|
Reimplemented from XMLStackNode. Definition at line 981 of file XMLStack.h. |
|
Reimplemented from XMLStackNode. Definition at line 977 of file XMLStack.h. |
|
Reimplemented from XMLStackNode. Definition at line 976 of file XMLStack.h. |
|
Reimplemented from XMLStackNode. Definition at line 975 of file XMLStack.h. |
|
Reimplemented from XMLStackNode. Definition at line 974 of file XMLStack.h. |
|
Reimplemented from XMLStackNode. Definition at line 973 of file XMLStack.h. |
|
Reimplemented from XMLStackNode. Definition at line 972 of file XMLStack.h. |
|
Reimplemented from XMLStackNode. Definition at line 971 of file XMLStack.h. |
|
Reimplemented from XMLStackNode. Definition at line 970 of file XMLStack.h. |
|
Reimplemented from XMLStackNode. Definition at line 969 of file XMLStack.h. |
|
Reimplemented from XMLStackNode. Definition at line 968 of file XMLStack.h. |
|
Sets the value for the attribute node. Automatic conversion is performed for characters that must be escaped. Reimplemented from XMLStackNode. Definition at line 963 of file XMLStack.h. Referenced by XMLStackProcessingInstruction::operator=(), XMLStackComment::operator=(), XMLStackCDATASection::operator=(), XMLStackText::operator=(), operator=(), XMLStackProcessingInstruction::setValue(), XMLStackComment::setValue(), XMLStackCDATASection::setValue(), XMLStackText::setValue(), and setValue(). |
|
Returns the XML for the attribute node.
Definition at line 988 of file XMLStack.h. |
|
Definition at line 1142 of file XMLStack.h. |
|
Definition at line 1136 of file XMLStack.h. |
|
Definition at line 1134 of file XMLStack.h. |
|
Definition at line 1135 of file XMLStack.h. |