csDocumentNodeReadOnly Class Reference
Partial iDocumentNode implementation with commonly duplicated logic and dummy implementations for manipulation methods. More...
#include <csutil/documentcommon.h>
Inheritance diagram for csDocumentNodeReadOnly:

Public Member Functions | |
virtual csRef< iDocumentNode > | CreateNodeBefore (csDocumentNodeType, iDocumentNode *) |
Create a new node of the given type before the given node. | |
virtual void | RemoveAttribute (const csRef< iDocumentAttribute > &) |
Remove an attribute. | |
virtual void | RemoveAttributes () |
Remove all attributes. | |
virtual void | RemoveNode (const csRef< iDocumentNode > &) |
Remove a child. | |
virtual void | RemoveNodes () |
Remove all children. | |
virtual void | RemoveNodes (csRef< iDocumentNodeIterator >) |
Remove all children returned by iterator. | |
virtual void | SetAttribute (const char *, const char *) |
Change or add an attribute. | |
virtual void | SetAttributeAsFloat (const char *, float) |
Change or add an attribute to a string representation of a float. | |
virtual void | SetAttributeAsInt (const char *, int) |
Converts 'value' to a string and calls SetAttribute() with it. | |
virtual void | SetValue (const char *) |
Dummy implementation for nodes that cannot be changed. | |
virtual void | SetValueAsFloat (float) |
Set value to the string representation of a float. | |
virtual void | SetValueAsInt (int) |
Converts 'value' to a string and calls SetValue() with it. |
Detailed Description
Partial iDocumentNode implementation with commonly duplicated logic and dummy implementations for manipulation methods.
Definition at line 152 of file documentcommon.h.
Member Function Documentation
|
Create a new node of the given type before the given node. If the given node is 0 then it will be added at the end. Returns the new node or 0 if the given type is not valid (CS_NODE_DOCUMENT is not allowed here for example). Implements iDocumentNode. Definition at line 166 of file documentcommon.h. |
|
Remove an attribute.
Implements iDocumentNode. Definition at line 170 of file documentcommon.h. |
|
Remove all attributes.
Implements iDocumentNode. Definition at line 171 of file documentcommon.h. |
|
Remove a child.
Implements iDocumentNode. Definition at line 162 of file documentcommon.h. |
|
Remove all children.
Implements iDocumentNode. Definition at line 164 of file documentcommon.h. |
|
Remove all children returned by iterator.
Implements iDocumentNode. Definition at line 163 of file documentcommon.h. |
|
Change or add an attribute.
Implements iDocumentNode. Definition at line 173 of file documentcommon.h. |
|
Change or add an attribute to a string representation of a float.
Reimplemented from csDocumentNodeCommon. Definition at line 175 of file documentcommon.h. |
|
Converts 'value' to a string and calls SetAttribute() with it.
Reimplemented from csDocumentNodeCommon. Definition at line 174 of file documentcommon.h. |
|
Dummy implementation for nodes that cannot be changed.
Implements iDocumentNode. Definition at line 158 of file documentcommon.h. |
|
Set value to the string representation of a float.
Reimplemented from csDocumentNodeCommon. Definition at line 160 of file documentcommon.h. |
|
Converts 'value' to a string and calls SetValue() with it.
Reimplemented from csDocumentNodeCommon. Definition at line 159 of file documentcommon.h. |
The documentation for this class was generated from the following file:
- csutil/documentcommon.h
Generated for Crystal Space by doxygen 1.4.4