Functions | |
| int | SPI_XML_open_xml_file (const std::string &dir, const std::string &name) |
| Opens an xml file for reading. | |
| void | SPI_XML_close_xml_file () |
| Closes xml file. | |
| int | SPI_XML_find_node (const std::string &nodeName) |
| Finds and selects a node from the XML file The node must be unique in the file. | |
| int | SPI_XML_select_node (const std::string &nodeName) |
| Selects a node from the XML file (relative mode) | |
| int | SPI_XML_select_next_node () |
| Selects next node with same name. | |
| int | SPI_XML_select_parent_node () |
| Selects the parent node of the current node. | |
| int | SPI_XML_select_root_node () |
| Selects root node. | |
| int | SPI_XML_select_node_loop (const std::string &nodeName) |
| Selects a node (relative mode) to loop. | |
| int | SPI_XML_select_next_node_loop () |
| Selects next node of same name in the loop. | |
| int | SPI_XML_get_current_string_attrib (const std::string &attribName, std::string &value) |
| Reads the string value of the attribute. | |
| int | SPI_XML_get_current_real_attrib (const std::string &attribName, double *value) |
| Reads the real value of the attribute. | |
| int | SPI_XML_get_current_integer_attrib (const std::string &attribName, int *value) |
| Reads the integer value of the attribute. | |
| int | SPI_XML_get_current_child (std::string &value) |
| Reads the value contained in the node. | |
| int | SPI_XML_read_node_string (const std::string &nodeName, std::string &value) |
| Reads the string value of a node. | |
| int | SPI_XML_read_node_real (const std::string &nodeName, double *value) |
| Reads the real value of a node. | |
| int | SPI_XML_read_node_integer (const std::string &nodeName, int *value) |
| Reads the integer value of a node. | |
Reading XML files
| void SPI_XML_close_xml_file | ( | ) |
| int SPI_XML_find_node | ( | const std::string & | nodeName | ) |
Finds and selects a node from the XML file
The node must be unique in the file.
| [in] | nodeName | node name |
| int SPI_XML_get_current_child | ( | std::string & | value | ) |
Reads the value contained in the node.
| [out] | value | value contained in the node |
| int SPI_XML_get_current_integer_attrib | ( | const std::string & | attribName, |
| int * | value ) |
Reads the integer value of the attribute.
| [in] | attribName | attrib name |
| [out] | value | integer attrib value |
| int SPI_XML_get_current_real_attrib | ( | const std::string & | attribName, |
| double * | value ) |
Reads the real value of the attribute.
| [in] | attribName | attrib name |
| [out] | value | real attrib value |
| int SPI_XML_get_current_string_attrib | ( | const std::string & | attribName, |
| std::string & | value ) |
Reads the string value of the attribute.
| [in] | attribName | attrib name |
| [out] | value | string attrib value |
| int SPI_XML_open_xml_file | ( | const std::string & | dir, |
| const std::string & | name ) |
Opens an xml file for reading.
| [in] | dir | folder name |
| [in] | name | file name |
| int SPI_XML_read_node_integer | ( | const std::string & | nodeName, |
| int * | value ) |
Reads the integer value of a node.
| [in] | nodeName | node name |
| [out] | value | integer value of node |
| int SPI_XML_read_node_real | ( | const std::string & | nodeName, |
| double * | value ) |
Reads the real value of a node.
| [in] | nodeName | node name |
| [out] | value | real value of node |
| int SPI_XML_read_node_string | ( | const std::string & | nodeName, |
| std::string & | value ) |
Reads the string value of a node.
| [in] | nodeName | node name |
| [out] | value | string value of node |
| int SPI_XML_select_next_node | ( | ) |
Selects next node with same name.
| int SPI_XML_select_next_node_loop | ( | ) |
Selects next node of same name in the loop.
| int SPI_XML_select_node | ( | const std::string & | nodeName | ) |
Selects a node from the XML file (relative mode)
| [in] | nodeName | node name |
| int SPI_XML_select_node_loop | ( | const std::string & | nodeName | ) |
Selects a node (relative mode) to loop.
| [in] | nodeName | node name |
| int SPI_XML_select_parent_node | ( | ) |
Selects the parent node of the current node.
| int SPI_XML_select_root_node | ( | ) |
Selects root node.