#include <skNode.h>
Inheritance diagram for skNode:
Public Types | |
enum | NodeType { ELEMENT_NODE, CDATA_SECTION_NODE, TEXT_NODE } |
This enumeration is used to distinguish between different types of node in a document. | |
Public Methods | |
virtual skString | getNodeValue () const |
This method returns the "value" of a node. More... | |
virtual void | setNodeValue (const skString& s) |
This method sets the "value" of the node. More... | |
virtual NodeType | getNodeType () const = 0 |
This abstract virtual function returns the type of this node. More... | |
virtual skNode* | clone () = 0 |
This abstract virtual function requests that the node create a copy of itself. More... | |
virtual void | write (ostream& out) const = 0 |
This abstract virtual function writes a textual representation of this node and its children to the given stream. More... | |
Protected Methods | |
skNode () | |
Prevent nodes from being copied by the default C++ behaviour. | |
skNode (const skNode&) | |
skNode& | operator= (const skNode& other) |
It is part of the classes used in the Simkin XML DOM (Document Object Model)
|
This abstract virtual function requests that the node create a copy of itself. How this is done depends on the actual class of the node.
Reimplemented in skElement, skTextNode, and skCDataNode. |
|
This abstract virtual function returns the type of this node. It will be one of the NodeType values
Reimplemented in skElement, and skTextNode. |
|
This method returns the "value" of a node. Typically this would be the text for a text or cdata node.
Reimplemented in skTextNode. |
|
This method sets the "value" of the node. Typically this would be the text for a text or cdata node. For other nodes, this does nothing.
Reimplemented in skTextNode. |
|
This abstract virtual function writes a textual representation of this node and its children to the given stream.
Reimplemented in skElement, and skTextNode. |