#include <_static/pugixml.hpp>
Public Member Functions | |
xml_text () | |
operator unspecified_bool_type () const | |
bool | operator! () const |
bool | empty () const |
const char_t * | get () const |
const char_t * | as_string (const char_t *def=PUGIXML_TEXT("")) const |
int | as_int (int def=0) const |
unsigned int | as_uint (unsigned int def=0) const |
double | as_double (double def=0) const |
float | as_float (float def=0) const |
bool | as_bool (bool def=false) const |
bool | set (const char_t *rhs) |
bool | set (int rhs) |
bool | set (unsigned int rhs) |
bool | set (long rhs) |
bool | set (unsigned long rhs) |
bool | set (double rhs) |
bool | set (float rhs) |
bool | set (bool rhs) |
xml_text & | operator= (const char_t *rhs) |
xml_text & | operator= (int rhs) |
xml_text & | operator= (unsigned int rhs) |
xml_text & | operator= (long rhs) |
xml_text & | operator= (unsigned long rhs) |
xml_text & | operator= (double rhs) |
xml_text & | operator= (float rhs) |
xml_text & | operator= (bool rhs) |
xml_node | data () const |
Private Types | |
typedef void(* | unspecified_bool_type) (xml_text ***) |
Private Member Functions | |
xml_text (xml_node_struct *root) | |
xml_node_struct * | _data_new () |
xml_node_struct * | _data () const |
Private Attributes | |
xml_node_struct * | _root |
Friends | |
class | xml_node |
Definition at line 709 of file pugixml.hpp.
|
private |
Definition at line 715 of file pugixml.hpp.
|
explicitprivate |
Definition at line 6352 of file pugixml.cpp.
PUGI__FN pugi::xml_text::xml_text | ( | ) |
Definition at line 6379 of file pugixml.cpp.
|
private |
Definition at line 6356 of file pugixml.cpp.
References _root, pugi::xml_node_struct::first_child, is_text_node(), pugi::xml_node_struct::next_sibling, pugi::node_element, PUGI__NODETYPE, and pugi::xml_node_struct::value.
Referenced by _data_new(), as_bool(), as_double(), as_float(), as_int(), as_string(), as_uint(), data(), empty(), get(), operator unspecified_bool_type(), and operator!().
|
private |
Definition at line 6371 of file pugixml.cpp.
References _data(), _root, pugi::node_pcdata, and xml_node.
Referenced by set().
PUGI__FN bool pugi::xml_text::as_bool | ( | bool | def = false | ) | const |
Definition at line 6444 of file pugixml.cpp.
References _data(), and get_value_bool().
PUGI__FN double pugi::xml_text::as_double | ( | double | def = 0 | ) | const |
Definition at line 6430 of file pugixml.cpp.
References _data(), and get_value_double().
PUGI__FN float pugi::xml_text::as_float | ( | float | def = 0 | ) | const |
Definition at line 6437 of file pugixml.cpp.
References _data(), and get_value_float().
PUGI__FN int pugi::xml_text::as_int | ( | int | def = 0 | ) | const |
Definition at line 6416 of file pugixml.cpp.
References _data(), and get_value_int().
PUGI__FN const char_t * pugi::xml_text::as_string | ( | const char_t * | def = PUGIXML_TEXT("") | ) | const |
Definition at line 6409 of file pugixml.cpp.
References _data().
PUGI__FN unsigned int pugi::xml_text::as_uint | ( | unsigned int | def = 0 | ) | const |
Definition at line 6423 of file pugixml.cpp.
References _data(), and get_value_uint().
Definition at line 6601 of file pugixml.cpp.
PUGI__FN bool pugi::xml_text::empty | ( | ) | const |
Definition at line 6397 of file pugixml.cpp.
References _data().
Definition at line 6402 of file pugixml.cpp.
References _data(), and PUGIXML_TEXT.
PUGI__FN pugi::xml_text::operator xml_text::unspecified_bool_type | ( | ) | const |
Definition at line 6387 of file pugixml.cpp.
References _data(), and pugi::unspecified_bool_xml_text().
PUGI__FN bool pugi::xml_text::operator! | ( | ) | const |
Definition at line 6392 of file pugixml.cpp.
References _data().
Definition at line 6581 of file pugixml.cpp.
References set().
Definition at line 6539 of file pugixml.cpp.
References set().
Definition at line 6569 of file pugixml.cpp.
References set().
Definition at line 6575 of file pugixml.cpp.
References set().
Definition at line 6545 of file pugixml.cpp.
References set().
Definition at line 6557 of file pugixml.cpp.
References set().
Definition at line 6551 of file pugixml.cpp.
References set().
Definition at line 6563 of file pugixml.cpp.
References set().
PUGI__FN bool pugi::xml_text::set | ( | bool | rhs | ) |
Definition at line 6516 of file pugixml.cpp.
References _data_new(), set_value_bool(), and xml_memory_page_value_allocated_mask.
Definition at line 6467 of file pugixml.cpp.
References _data_new(), strcpy_insitu(), strlength(), and xml_memory_page_value_allocated_mask.
Referenced by operator=().
PUGI__FN bool pugi::xml_text::set | ( | double | rhs | ) |
Definition at line 6509 of file pugixml.cpp.
References _data_new(), set_value_convert(), and xml_memory_page_value_allocated_mask.
PUGI__FN bool pugi::xml_text::set | ( | float | rhs | ) |
Definition at line 6502 of file pugixml.cpp.
References _data_new(), set_value_convert(), and xml_memory_page_value_allocated_mask.
PUGI__FN bool pugi::xml_text::set | ( | int | rhs | ) |
Definition at line 6474 of file pugixml.cpp.
References _data_new(), and xml_memory_page_value_allocated_mask.
PUGI__FN bool pugi::xml_text::set | ( | long | rhs | ) |
Definition at line 6488 of file pugixml.cpp.
References _data_new(), and xml_memory_page_value_allocated_mask.
PUGI__FN bool pugi::xml_text::set | ( | unsigned int | rhs | ) |
Definition at line 6481 of file pugixml.cpp.
References _data_new(), and xml_memory_page_value_allocated_mask.
PUGI__FN bool pugi::xml_text::set | ( | unsigned long | rhs | ) |
Definition at line 6495 of file pugixml.cpp.
References _data_new(), and xml_memory_page_value_allocated_mask.
|
friend |
Definition at line 711 of file pugixml.hpp.
Referenced by _data_new(), and data().
|
private |
Definition at line 713 of file pugixml.hpp.
Referenced by _data(), and _data_new().