ddc
|
Class holding the result of an expression (e_expression_type) More...
#include <xpath_expression.h>
Public Member Functions | |
expression_result () | |
Dummy constructor. More... | |
expression_result (const expression_result &er_2) | |
Copy constructor. More... | |
expression_result & | operator= (const expression_result &er_2) |
void | v_set_bool (bool o_in) |
Set expression_result to a bool. More... | |
void | v_set_int (int i_in) |
Set expression_result to an int. More... | |
void | v_set_string (const char *cp_in) |
Set expression_result to a string. More... | |
void | v_set_string (TiXmlString S_in) |
Set expression_result to a string. More... | |
void | v_set_double (double d_in) |
Set expression_result to a double. More... | |
void | v_set_comment (const char *cp_in) |
Set the comment associated with a stack element. This is for debuging. More... | |
int | i_get_int () |
Get the expression_result as an int. More... | |
TiXmlString | S_get_string () |
Get the expression_result as a string. More... | |
const char * | cp_get_string () |
Get the expression_result as a string. More... | |
bool | o_get_bool () |
double | d_get_double () |
Get the expression_result as a double. More... | |
void | v_set_node_set (node_set *nsp_source) |
Set the expression_result as a node set. More... | |
void | v_set_node_set (TiXmlNode *XNp_root) |
Set the expression_result as a node set. More... | |
void | v_set_node_set (TiXmlNode *XNp_root, const char *cp_lookup) |
Set the expression_result as a node set. More... | |
void | v_set_node_set_recursive (TiXmlNode *XNp_root) |
Set the expression_result as a node set. More... | |
void | v_set_node_set_recursive (TiXmlNode *XNp_root, const char *cp_lookup) |
Set the expression_result as a node set. More... | |
void | v_set_node_set () |
Set the expression_result as an empty node set. More... | |
node_set * | nsp_get_node_set () |
Get the expression_result as a node set. More... | |
Public Attributes | |
e_expression_type | e_type |
expression type More... | |
Protected Attributes | |
TiXmlString | S_content |
String content. More... | |
bool | o_content |
bool content More... | |
int | i_content |
integer content More... | |
double | d_content |
double content More... | |
node_set | ns_set |
node set content More... | |
Class holding the result of an expression (e_expression_type)
|
inline |
Dummy constructor.
References TinyXPath::e_invalid.
|
inline |
Copy constructor.
|
inline |
References d_content, TinyXPath::e_bool, TinyXPath::e_double, TinyXPath::e_int, TinyXPath::e_node_set, TinyXPath::e_string, e_type, i_content, ns_set, o_content, and S_content.
|
inline |
Set expression_result to a bool.
References TinyXPath::e_bool.
Referenced by TinyXPath::xpath_stack::v_push_bool().
|
inline |
Set expression_result to an int.
References TinyXPath::e_int.
Referenced by TinyXPath::xpath_stack::v_push_int().
|
inline |
Set expression_result to a string.
References TinyXPath::e_string.
Referenced by TinyXPath::xpath_stack::v_push_string().
|
inline |
Set expression_result to a string.
References TinyXPath::e_string.
|
inline |
Set expression_result to a double.
References TinyXPath::e_double.
Referenced by TinyXPath::xpath_stack::v_push_double().
|
inline |
Set the comment associated with a stack element. This is for debuging.
References i_get_int(), S_get_string(), and TIXML_STRING.
Referenced by TinyXPath::xpath_stack::v_push_int().
int TinyXPath::expression_result::i_get_int | ( | ) |
Get the expression_result as an int.
References d_content, TinyXPath::e_bool, TinyXPath::e_double, TinyXPath::e_int, e_type, i_content, o_content, and S_get_string().
Referenced by TinyXPath::xpath_stack::i_pop_int(), TinyXPath::xpath_stack::i_top_int(), S_get_string(), and v_set_comment().
TiXmlString TinyXPath::expression_result::S_get_string | ( | ) |
Get the expression_result as a string.
References d_get_double(), TinyXPath::e_bool, TinyXPath::e_double, TinyXPath::e_int, TinyXPath::e_node_set, TinyXPath::e_string, e_type, i_get_int(), nsp_get_node_set(), o_get_bool(), S_content, TIXML_STRING, TinyXPath::v_assign_double_to_string(), and TinyXPath::v_assign_int_to_string().
Referenced by d_get_double(), i_get_int(), TinyXPath::xpath_stack::S_pop_string(), and v_set_comment().
|
inline |
Get the expression_result as a string.
References d_get_double(), TinyXPath::e_string, and o_get_bool().
bool TinyXPath::expression_result::o_get_bool | ( | ) |
Get the expression_result as a bool
The boolean function converts its argument to a boolean as follows:
References d_content, d_get_double(), TinyXPath::e_bool, TinyXPath::e_double, TinyXPath::e_int, TinyXPath::e_invalid, TinyXPath::e_node_set, TinyXPath::e_string, e_type, i_content, ns_set, nsp_get_node_set(), o_content, and S_content.
Referenced by cp_get_string(), TinyXPath::xpath_stack::o_pop_bool(), and S_get_string().
double TinyXPath::expression_result::d_get_double | ( | ) |
Get the expression_result as a double.
References d_content, TinyXPath::e_bool, TinyXPath::e_double, TinyXPath::e_int, e_type, i_content, o_content, and S_get_string().
Referenced by cp_get_string(), o_get_bool(), and S_get_string().
|
inline |
Set the expression_result as a node set.
References TinyXPath::e_node_set.
|
inline |
Set the expression_result as a node set.
References TinyXPath::e_node_set.
|
inline |
Set the expression_result as a node set.
References TinyXPath::e_node_set.
|
inline |
Set the expression_result as a node set.
References TinyXPath::e_node_set.
|
inline |
Set the expression_result as a node set.
References TinyXPath::e_node_set.
|
inline |
Set the expression_result as an empty node set.
References TinyXPath::e_node_set.
Referenced by TinyXPath::xpath_stack::v_push_node_set().
|
inline |
Get the expression_result as a node set.
References ns_set.
Referenced by TinyXPath::xpath_stack::ns_pop_node_set(), o_get_bool(), and S_get_string().
|
protected |
String content.
Referenced by o_get_bool(), operator=(), and S_get_string().
|
protected |
bool content
Referenced by d_get_double(), i_get_int(), o_get_bool(), and operator=().
|
protected |
integer content
Referenced by d_get_double(), i_get_int(), o_get_bool(), and operator=().
|
protected |
double content
Referenced by d_get_double(), i_get_int(), o_get_bool(), and operator=().
|
protected |
node set content
Referenced by nsp_get_node_set(), o_get_bool(), and operator=().
e_expression_type TinyXPath::expression_result::e_type |
expression type
Referenced by d_get_double(), i_get_int(), o_get_bool(), operator=(), and S_get_string().