#include <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 (double 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= (double rhs) |
xml_text & | operator= (bool rhs) |
xml_node | data () const |
Friends | |
class | xml_node |
Definition at line 587 of file pugixml.hpp.
PUGI__FN pugi::xml_text::xml_text | ( | ) |
Definition at line 4356 of file pugixml.cpp.
PUGI__FN bool pugi::xml_text::as_bool | ( | bool | def = false |
) | const |
Definition at line 4421 of file pugixml.cpp.
References get_value_bool(), and pugi::xml_node_struct::value.
PUGI__FN double pugi::xml_text::as_double | ( | double | def = 0 |
) | const |
Definition at line 4407 of file pugixml.cpp.
References get_value_double(), and pugi::xml_node_struct::value.
PUGI__FN float pugi::xml_text::as_float | ( | float | def = 0 |
) | const |
Definition at line 4414 of file pugixml.cpp.
References get_value_float(), and pugi::xml_node_struct::value.
PUGI__FN int pugi::xml_text::as_int | ( | int | def = 0 |
) | const |
Definition at line 4393 of file pugixml.cpp.
References get_value_int(), and pugi::xml_node_struct::value.
PUGI__FN unsigned int pugi::xml_text::as_uint | ( | unsigned int | def = 0 |
) | const |
Definition at line 4400 of file pugixml.cpp.
References get_value_uint(), and pugi::xml_node_struct::value.
PUGI__FN xml_node pugi::xml_text::data | ( | ) | const |
PUGI__FN bool pugi::xml_text::empty | ( | ) | const |
Definition at line 4374 of file pugixml.cpp.
PUGI__FN const char_t * pugi::xml_text::get | ( | ) | const |
Definition at line 4379 of file pugixml.cpp.
References PUGIXML_TEXT, and pugi::xml_node_struct::value.
PUGI__FN pugi::xml_text::operator xml_text::unspecified_bool_type | ( | ) | const |
Definition at line 4364 of file pugixml.cpp.
PUGI__FN bool pugi::xml_text::operator! | ( | ) | const |
Definition at line 4369 of file pugixml.cpp.
PUGI__FN xml_text & pugi::xml_text::operator= | ( | bool | rhs | ) |
Definition at line 4487 of file pugixml.cpp.
PUGI__FN xml_text & pugi::xml_text::operator= | ( | double | rhs | ) |
Definition at line 4481 of file pugixml.cpp.
PUGI__FN xml_text & pugi::xml_text::operator= | ( | unsigned int | rhs | ) |
Definition at line 4475 of file pugixml.cpp.
PUGI__FN xml_text & pugi::xml_text::operator= | ( | int | rhs | ) |
Definition at line 4469 of file pugixml.cpp.
Definition at line 4463 of file pugixml.cpp.
PUGI__FN bool pugi::xml_text::set | ( | bool | rhs | ) |
Definition at line 4456 of file pugixml.cpp.
References pugi::xml_node_struct::header, set_value_convert(), and pugi::xml_node_struct::value.
PUGI__FN bool pugi::xml_text::set | ( | double | rhs | ) |
Definition at line 4449 of file pugixml.cpp.
References pugi::xml_node_struct::header, set_value_convert(), and pugi::xml_node_struct::value.
PUGI__FN bool pugi::xml_text::set | ( | unsigned int | rhs | ) |
Definition at line 4442 of file pugixml.cpp.
References pugi::xml_node_struct::header, set_value_convert(), and pugi::xml_node_struct::value.
PUGI__FN bool pugi::xml_text::set | ( | int | rhs | ) |
Definition at line 4435 of file pugixml.cpp.
References pugi::xml_node_struct::header, set_value_convert(), and pugi::xml_node_struct::value.
PUGI__FN bool pugi::xml_text::set | ( | const char_t * | rhs | ) |
Definition at line 4428 of file pugixml.cpp.
References pugi::xml_node_struct::header, strcpy_insitu(), and pugi::xml_node_struct::value.
friend class xml_node [friend] |