2.2.3.17 TreeNode


Contents

Name

TreeNode

Remark

Hierarchy

Examples

Header to Include

origin.h

Reference

Members

Name Brief Example
Add a new node.
Creates a new node with the specified name, id and the double value and returns that node.
Creates a new node with the specified name, id and the string value and returns that node.
Clones a tree node. If bDeep is true, copies the whole branch
Construct a new tree that collects all the tree nodes that are different between the two given.
Find a node from a tree by the AttributeName with matching value.
Get array as string from the node.
Get the attribute value of a node with the specified attribute name.
Get all attribute names from this node
Gets a DataRange object from the TreeNode object which was previously saved using SetDataRanges
Find child by name
Get the number of children nodes in the tree node.
Get tree node from the specify path.
Get a node's text string by allowing custom code page value to convert from Unicode to multibytes. This is needed if the XML node contains a string that is not ascii. For example, Japanese, Chinese, or German strings.
Allows recursive access for getting values a leaf of with a particular tagname of the TreeNode
Insert a child node.
Returns the information on whether the node is empty or not. The node must be valid. The node is considered empty if it has no child nodes or if the value it holds is empty.
Checks if a given node is a valid node or not
Find parent.
Removes the node that calls this method.
Removes the attribute of a node.
Removes the node with the specified id.
Removes the node with the specified prefix.
Replaces a node in the tree.
Removes all the children and value of a node or a tree, and optionally all attributes
Reverse the order of the child nodes
Sets the integer value of a node.
Ensures that any string set to it will be preserved without modifications when saved into a file.
sets a DataRange object to the TreeNode
It sets the value of the node as string by assuming the supplied code page (if >= 0) when converting to Unicode.
Allows recursive access for setting values to all the leaves of the TreeNode
Default constructor

Property

Name Brief Example
Children are all next level's nodes that are direct adjacent to "this" node.
Read or write treenode's DataID attribute.
Read or write treenode's Enable attribute.
Read-only. The first child of this node.
Read or write treenode's NodeID attribute.
Read-only. The last child of this node.
Read-only. The next adjacent leaf of this node.
Read-only. The next adjacent node of this node.
Read-only. The previous adjacent node of this node.
Read or write treenode's Show attribute.
Read-only. Text name of the node.
Property to read or write text to treenode.
Identifies the data type of the node
Read or write treenode's Use attribute.
init treenode from XML string or to get as XML string