DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Class to support both way translation between C++ and XML strings. More...
#include <XMLElements.h>
Public Member Functions | |
Tag_t (const char *s) | |
Constructor from normal ASCII string. More... | |
Tag_t (const XmlChar *s) | |
Constructor from unicode string. More... | |
Tag_t (const Strng_t &s) | |
Constructor from internal XML string. More... | |
Tag_t (const std::string &s) | |
Constructor from STL string. More... | |
Tag_t (const std::string &v, const std::string &s, void(*register_func)(const std::string &, Tag_t *)) | |
Tag_t (const Tag_t &c) | |
Copy constructor. More... | |
~Tag_t () | |
Destructor. More... | |
Tag_t & | operator= (const char *s) |
Assignment of a normal ASCII string. More... | |
Tag_t & | operator= (const Tag_t &s) |
Assignment of a tag object. More... | |
Tag_t & | operator= (const Strng_t &s) |
Assignment of a internal Xml string. More... | |
Tag_t & | operator= (const std::string &s) |
Assignment of a STL string. More... | |
operator const std::string & () const | |
Automatic conversion to STL string. More... | |
const std::string & | str () const |
Access writable STL string. More... | |
const char * | c_str () const |
Access data buffer of STL string. More... | |
Public Member Functions inherited from dd4hep::xml::Strng_t | |
Strng_t (const XmlChar *c) | |
Initializing constructor from unicode string. More... | |
Strng_t & | operator= (const XmlChar *s) |
Assignment opertor from unicode string. More... | |
Strng_t (const char *c) | |
Initializing constructor from ascii string. More... | |
Strng_t (const std::string &c) | |
Initializing constructor from STL string. More... | |
Strng_t (const Strng_t &c) | |
Copy constructor. More... | |
~Strng_t () | |
Default destructor - release unicode string. More... | |
operator const XmlChar * () const | |
Auto-conversion to unicode string. More... | |
const XmlChar * | ptr () const |
Accessor to unicode string. More... | |
size_t | length () const |
String length in native representation. More... | |
Strng_t & | operator= (const char *s) |
Assignment opertor from ascii string. More... | |
Strng_t & | operator= (const Strng_t &s) |
Assignment opertor from helper string. More... | |
Strng_t & | operator= (const std::string &s) |
Assignment opertor from STL string. More... | |
Public Attributes | |
std::string | m_str |
STL string buffer. More... | |
Public Attributes inherited from dd4hep::xml::Strng_t | |
XmlChar * | m_xml |
Pointer to unicode string. More... | |
Class to support both way translation between C++ and XML strings.
Helper class to easily convert between – unicode – std::string – const char*. Internaly a copy representation as an std::string is kept.
Definition at line 254 of file XMLElements.h.
|
inline |
Constructor from normal ASCII string.
Definition at line 260 of file XMLElements.h.
|
inline |
Constructor from unicode string.
Definition at line 265 of file XMLElements.h.
|
inline |
Constructor from internal XML string.
Definition at line 269 of file XMLElements.h.
|
inline |
Constructor from STL string.
Definition at line 273 of file XMLElements.h.
|
inline |
Constructor from STL string with registration. ONLY to be used for static global entries to protect against duplicated static memory.
Definition at line 278 of file XMLElements.h.
|
inline |
Copy constructor.
Definition at line 283 of file XMLElements.h.
|
inline |
Destructor.
Definition at line 287 of file XMLElements.h.
|
inline |
Access data buffer of STL string.
Definition at line 308 of file XMLElements.h.
|
inline |
Automatic conversion to STL string.
Definition at line 300 of file XMLElements.h.
Tag_t & Tag_t::operator= | ( | const char * | s | ) |
Assignment of a normal ASCII string.
Definition at line 528 of file XMLElements.cpp.
Tag_t & Tag_t::operator= | ( | const std::string & | s | ) |
Assignment of a STL string.
Definition at line 555 of file XMLElements.cpp.
Assignment of a internal Xml string.
Definition at line 542 of file XMLElements.cpp.
Assignment of a tag object.
Definition at line 518 of file XMLElements.cpp.
|
inline |
Access writable STL string.
Definition at line 304 of file XMLElements.h.
std::string dd4hep::xml::Tag_t::m_str |
STL string buffer.
Definition at line 257 of file XMLElements.h.