xmlChar * wrapper.
More...
#include <XmlString.h>
Public Types | |
| enum | OnDelete { NOFREE, FREE } |
| Dtor policy. More... | |
Public Member Functions | |
| XmlString (const xmlChar *const xmlstr_r=NULL, OnDelete ondelete_r=NOFREE) | |
| Ctor from xmlChar. | |
| const xmlChar *const | get () const |
Access the xmlChar *. | |
| operator const xmlChar *const () const | |
Implicit conversion to xmlChar *. | |
| const char *const | c_str () const |
Explicit conversion to const char *const. | |
| std::string | asString () const |
Explicit conversion to std::string. | |
| bool | operator== (const std::string &rhs) const |
| bool | operator!= (const std::string &rhs) const |
| bool | operator== (const char *const rhs) const |
| bool | operator!= (const char *const rhs) const |
| bool | operator== (const XmlString &rhs) const |
| bool | operator!= (const XmlString &rhs) const |
Private Attributes | |
| shared_ptr< const xmlChar > | _xmlstr |
Wraps the xmlChar *. | |
Related Functions | |
| (Note that these are not member functions.) | |
| std::ostream & | operator<< (std::ostream &str, const XmlString &obj) |
Classes | |
| struct | Deleter |
shared_ptr custom deleter calling xmlFree. More... | |
xmlChar * wrapper.
Common handling of xmlChar * that do or do not need to be freed. If the wraped xmlChar * needs to be freed by calling xmlFree, pass FREE as 2nd argument to the ctor.
Definition at line 39 of file XmlString.h.
|
|
Dtor policy.
Definition at line 51 of file XmlString.h. |
|
||||||||||||
|
Ctor from xmlChar.
Pass Definition at line 29 of file XmlString.cc. |
|
|
Access the
Definition at line 60 of file XmlString.h. References _xmlstr. Referenced by c_str(), and operator const xmlChar *const(). |
|
|
Implicit conversion to
Definition at line 68 of file XmlString.h. References get(). |
|
|
Explicit conversion to
Definition at line 72 of file XmlString.h. References get(). Referenced by asString(), operator!=(), zypp::xml::operator<<(), and operator==(). |
|
|
Explicit conversion to
Definition at line 76 of file XmlString.h. References _xmlstr, and c_str(). Referenced by operator!=(), and operator==(). |
|
|
Definition at line 83 of file XmlString.h. References c_str(). |
|
|
Definition at line 86 of file XmlString.h. References c_str(). |
|
|
Definition at line 89 of file XmlString.h. References asString(). |
|
|
Definition at line 92 of file XmlString.h. References asString(). |
|
|
Definition at line 95 of file XmlString.h. References asString(), and c_str(). |
|
|
Definition at line 98 of file XmlString.h. References asString(), and c_str(). |
|
||||||||||||
|
Stream output. Definition at line 46 of file XmlString.cc. |
|
|
Wraps the The appropriate custom deleter is set by the ctor. Definition at line 104 of file XmlString.h. Referenced by asString(), get(), and XmlString(). |
1.4.6