#include <node_set.h>
Public Member Functions | |
| node_set () | |
| constructor : creates an empty set | |
| node_set (const node_set &ns2) | |
| Copy constructor. | |
| ~node_set () | |
| destructor | |
| node_set & | operator= (const node_set &ns2) |
| Assignation operator. Allows one to write expressions like ns_1 = ns_2;. | |
| void | v_add_base_in_set (const TiXmlBase *XBp_member, bool o_attrib) |
| Adds a new node in the node set. | |
| void | v_add_attrib_in_set (const TiXmlAttribute *XAp_attrib) |
| Adds an attribute in the node set. | |
| void | v_add_node_in_set (const TiXmlNode *XNp_node) |
| Adds a node in the node set. | |
| bool | o_exist_in_set (const TiXmlBase *XBp_member) |
| Checks if a node exist in the node set. | |
| void | v_add_all_foll_node (const TiXmlNode *XNp_node, const TIXML_STRING &S_name) |
| Populate the node set with all following nodes. | |
| void | v_add_all_prec_node (const TiXmlNode *XNp_node, const TIXML_STRING &S_name) |
| Populate the node set with all preceding nodes. | |
| void | v_add_node_in_set_if_name_or_star (const TiXmlNode *XNp_node, const TIXML_STRING &S_name) |
| Add a new node, if the name is "*" or if the name is the same as the node. | |
| void | v_add_attrib_in_set_if_name_or_star (const TiXmlAttribute *XAp_attrib, const TIXML_STRING &S_name) |
| Add a new attrib, if the name is "*" or if the name is the same as the node. | |
| unsigned | u_get_nb_node_in_set () const |
| Get nb of nodes in the node set. | |
| const TiXmlBase * | XBp_get_base_in_set (unsigned u_which) |
| Get a node or an attribute. | |
| const TiXmlNode * | XNp_get_node_in_set (unsigned u_which) |
| Get a node. | |
| const TiXmlAttribute * | XAp_get_attribute_in_set (unsigned u_which) |
| Get an attribute. | |
| bool | o_is_attrib (unsigned u_which) |
| Check if a node is an attribute or another node. | |
| TIXML_STRING | S_get_value (unsigned u_which) |
| Get a node value. The value is the name for an element, and the attribute value for an attribute. | |
| int | i_get_value (unsigned u_which) |
| Get the integer value of a node. | |
| double | d_get_value (unsigned u_which) |
| Get the real value of a node. | |
| void | v_copy_node_children (const TiXmlNode *XNp_root) |
| Copy all element children of a node to the node_set. | |
| void | v_copy_node_children (const TiXmlNode *XNp_root, const char *cp_lookup) |
| Copy all element children of a node to the node_set, if their name matches a given name. | |
| void | v_copy_selected_node_recursive (const TiXmlNode *XNp_root) |
| Copy all nodes in the tree to the node_set. | |
| void | v_copy_selected_node_recursive (const TiXmlNode *XNp_root, const char *cp_lookup) |
| Copy all nodes in the tree to the node_set. | |
| void | v_copy_selected_node_recursive_no_attrib (const TiXmlNode *XNp_root, const char *cp_lookup) |
| Copy all nodes in the tree to the node_set, excluding attributes. | |
| TIXML_STRING | S_get_string_value () const |
| Return the string value aka concatenation of all text items. | |
| void | v_dump () |
| Debug function to print the content of a node set to stdout. | |
| void | v_document_sort () |
| Sort the node set according to the document order. | |
Protected Attributes | |
| unsigned | u_nb_node |
| Nb of nodes in the set. | |
| const void ** | vpp_node_set |
| List of node pointers to the. | |
| bool * | op_attrib |
| Attributes flag list. | |
|
|
constructor : creates an empty set
|
|
|
Copy constructor.
|
|
|
destructor
|
|
|
Get the real value of a node.
|
|
|
Get the integer value of a node.
|
|
|
Checks if a node exist in the node set.
|
|
|
Check if a node is an attribute or another node. This is needed because TinyXML has a weird exception for attributes not being children of TiXmlNode |
|
|
Assignation operator. Allows one to write expressions like ns_1 = ns_2;.
|
|
|
Return the string value aka concatenation of all text items.
|
|
|
Get a node value. The value is the name for an element, and the attribute value for an attribute.
|
|
|
Get nb of nodes in the node set.
|
|
||||||||||||
|
Populate the node set with all following nodes.
|
|
||||||||||||
|
Populate the node set with all preceding nodes.
|
|
|
Adds an attribute in the node set.
|
|
||||||||||||
|
Add a new attrib, if the name is "*" or if the name is the same as the node.
|
|
||||||||||||
|
Adds a new node in the node set.
|
|
|
Adds a node in the node set.
|
|
||||||||||||
|
Add a new node, if the name is "*" or if the name is the same as the node.
|
|
||||||||||||
|
Copy all element children of a node to the node_set, if their name matches a given name.
|
|
|
Copy all element children of a node to the node_set.
|
|
||||||||||||
|
Copy all nodes in the tree to the node_set.
|
|
|
Copy all nodes in the tree to the node_set.
|
|
||||||||||||
|
Copy all nodes in the tree to the node_set, excluding attributes.
|
|
|
Sort the node set according to the document order.
|
|
|
Debug function to print the content of a node set to stdout.
|
|
|
Get an attribute.
|
|
|
Get a node or an attribute.
|
|
|
Get a node.
|
|
|
Attributes flag list.
|
|
|
Nb of nodes in the set.
|
|
|
List of node pointers to the.
|