DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Public Member Functions | Public Attributes | List of all members
dd4hep::xml::Strng_t Class Reference

Helper class to encapsulate a unicode string. More...

#include <XMLElements.h>

Inheritance diagram for dd4hep::xml::Strng_t:
dd4hep::xml::Tag_t

Public Member Functions

 Strng_t (const XmlChar *c)
 Initializing constructor from unicode string. More...
 
Strng_toperator= (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 XmlCharptr () const
 Accessor to unicode string. More...
 
size_t length () const
 String length in native representation. More...
 
Strng_toperator= (const char *s)
 Assignment opertor from ascii string. More...
 
Strng_toperator= (const Strng_t &s)
 Assignment opertor from helper string. More...
 
Strng_toperator= (const std::string &s)
 Assignment opertor from STL string. More...
 

Public Attributes

XmlCharm_xml
 Pointer to unicode string. More...
 

Detailed Description

Helper class to encapsulate a unicode string.

Simple conversion from ascii strings to unicode strings. Useful when using XercesC - dummy implementation for TiXml.

Author
M.Frank
Version
1.0

Definition at line 170 of file XMLElements.h.

Constructor & Destructor Documentation

◆ Strng_t() [1/4]

dd4hep::xml::Strng_t::Strng_t ( const XmlChar c)
inline

Initializing constructor from unicode string.

Definition at line 176 of file XMLElements.h.

◆ Strng_t() [2/4]

dd4hep::xml::Strng_t::Strng_t ( const char *  c)
inline

Initializing constructor from ascii string.

Definition at line 183 of file XMLElements.h.

◆ Strng_t() [3/4]

dd4hep::xml::Strng_t::Strng_t ( const std::string &  c)
inline

Initializing constructor from STL string.

Definition at line 187 of file XMLElements.h.

◆ Strng_t() [4/4]

dd4hep::xml::Strng_t::Strng_t ( const Strng_t c)
inline

Copy constructor.

Definition at line 191 of file XMLElements.h.

◆ ~Strng_t()

dd4hep::xml::Strng_t::~Strng_t ( )
inline

Default destructor - release unicode string.

Definition at line 195 of file XMLElements.h.

Member Function Documentation

◆ length()

size_t dd4hep::xml::Strng_t::length ( ) const
inline

String length in native representation.

Definition at line 208 of file XMLElements.h.

◆ operator const XmlChar *()

dd4hep::xml::Strng_t::operator const XmlChar * ( ) const
inline

Auto-conversion to unicode string.

Definition at line 200 of file XMLElements.h.

◆ operator=() [1/4]

Strng_t & Strng_t::operator= ( const char *  s)

Assignment opertor from ascii string.

Definition at line 495 of file XMLElements.cpp.

◆ operator=() [2/4]

Strng_t & Strng_t::operator= ( const std::string &  s)

Assignment opertor from STL string.

Definition at line 511 of file XMLElements.cpp.

◆ operator=() [3/4]

Strng_t & Strng_t::operator= ( const Strng_t s)

Assignment opertor from helper string.

Definition at line 502 of file XMLElements.cpp.

◆ operator=() [4/4]

Strng_t & Strng_t::operator= ( const XmlChar s)

Assignment opertor from unicode string.

Definition at line 487 of file XMLElements.cpp.

◆ ptr()

const XmlChar* dd4hep::xml::Strng_t::ptr ( ) const
inline

Accessor to unicode string.

Definition at line 204 of file XMLElements.h.

Member Data Documentation

◆ m_xml

XmlChar* dd4hep::xml::Strng_t::m_xml

Pointer to unicode string.

Definition at line 173 of file XMLElements.h.


The documentation for this class was generated from the following files: