DD4hep - The AIDA detector description toolkit for high energy physics experiments
DD4hep  Rev:Unversioneddirectory
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Macros | Typedefs | Functions
XMLElements.h File Reference
#include <cmath>
#include <string>
#include <vector>
#include <stdexcept>
#include "XML/config.h"
#include "DD4hep/Primitives.h"

Go to the source code of this file.

Classes

class  DD4hep::XML::XmlString
 Definition of the XmlString class. More...
 
class  DD4hep::XML::Strng_t
 Helper class to encapsulate a unicode string. More...
 
class  DD4hep::XML::Tag_t
 Class to support both way translation between C++ and XML strings. More...
 
class  DD4hep::XML::NodeList
 Class describing a list of XML nodes. More...
 
class  DD4hep::XML::Handle_t
 Class to easily access the properties of single XmlElements. More...
 
class  DD4hep::XML::Collection_t
 Class to support the access to collections of XmlNodes (or XmlElements) More...
 
class  DD4hep::XML::Document
 Class supporting the basic functionality of an XML document. More...
 
class  DD4hep::XML::DocumentHolder
 Class supporting the basic functionality of an XML document including ownership. More...
 
class  DD4hep::XML::Element
 User abstraction class to manipulate XML elements within a document. More...
 
class  DD4hep::XML::RefElement
 User abstraction class to manipulate named XML elements (references) within a document. More...
 

Namespaces

 DD4hep
 Namespace for the AIDA detector description toolkit.
 
 DD4hep::XML
 Namespace containing utilities to parse XML files using XercesC or TinyXML.
 

Macros

#define RAD_2_DEGREE   57.295779513082320876798154814105
 
#define M_PI   3.14159265358979323846
 
#define INLINE   inline
 

Typedefs

typedef const XmlAttr * DD4hep::XML::Attribute
 
typedef const std::string & DD4hep::XML::CSTR
 
typedef const XmlChar * DD4hep::XML::cpXmlChar
 

Functions

void DD4hep::XML::dumpTree (XmlDocument *doc)
 Dump DOM tree of a document. More...
 
std::string DD4hep::XML::_toString (const Attribute attr)
 Convert xml attribute to STL string. More...
 
std::string DD4hep::XML::_toString (const XmlChar *toTranscode)
 Convert xml string to STL string. More...
 
std::string DD4hep::XML::_toString (const char *s)
 Do-nothing version. Present for completeness and argument interchangeability. More...
 
std::string DD4hep::XML::_toString (const std::string &s)
 Do-nothing version. Present for completeness and argument interchangeability. More...
 
std::string DD4hep::XML::_toString (unsigned long i, const char *fmt="%lu")
 Format unsigned long integer to string with arbitrary format. More...
 
std::string DD4hep::XML::_toString (unsigned int i, const char *fmt="%u")
 Format unsigned integer (32 bits) to string with arbitrary format. More...
 
std::string DD4hep::XML::_toString (int i, const char *fmt="%d")
 Format signed integer (32 bits) to string with arbitrary format. More...
 
std::string DD4hep::XML::_toString (long i, const char *fmt="%ld")
 Format signed long integer to string with arbitrary format. More...
 
std::string DD4hep::XML::_toString (float d, const char *fmt="%.17e")
 Format single procision float number (32 bits) to string with arbitrary format. More...
 
std::string DD4hep::XML::_toString (double d, const char *fmt="%.17e")
 Format double procision float number (64 bits) to string with arbitrary format. More...
 
std::string DD4hep::XML::_ptrToString (const void *p, const char *fmt="%p")
 Format void pointer (64 bits) to string with arbitrary format. More...
 
template<typename T >
std::string DD4hep::XML::_toString (const T *p, const char *fmt="%p")
 Format void pointer (64 bits) to string with arbitrary format. More...
 
void DD4hep::XML::_toDictionary (const XmlChar *name, const XmlChar *value)
 Helper function to populate the evaluator dictionary. More...
 
template<typename T >
void DD4hep::XML::_toDictionary (const XmlChar *name, T value)
 Helper function to populate the evaluator dictionary. More...
 
void DD4hep::XML::_toDictionary (const XmlChar *name, float value)
 Helper function to populate the evaluator dictionary. More...
 
void DD4hep::XML::_toDictionary (const XmlChar *name, double value)
 Helper function to populate the evaluator dictionary. More...
 
std::string DD4hep::XML::getEnviron (const std::string &env)
 Helper function to lookup environment from the expression evaluator. More...
 
bool DD4hep::XML::_toBool (const XmlChar *value)
 Conversion function from raw unicode string to bool. More...
 
int DD4hep::XML::_toInt (const XmlChar *value)
 Conversion function from raw unicode string to int. More...
 
long DD4hep::XML::_toLong (const XmlChar *value)
 Conversion function from raw unicode string to long. More...
 
float DD4hep::XML::_toFloat (const XmlChar *value)
 Conversion function from raw unicode string to float. More...
 
double DD4hep::XML::_toDouble (const XmlChar *value)
 Conversion function from raw unicode string to double. More...
 
Strng_t DD4hep::XML::operator+ (const Strng_t &a, const char *b)
 Unicode string concatenation of a normal ASCII string from right side. More...
 
Strng_t DD4hep::XML::operator+ (const Strng_t &a, const std::string &b)
 Unicode string concatenation of a encapsulated and an STL string from right side. More...
 
Strng_t DD4hep::XML::operator+ (const Strng_t &a, const Strng_t &b)
 Unicode string concatenation of a encapsulated and an encapsulated string from right side. More...
 
Strng_t DD4hep::XML::operator+ (const char *a, const Strng_t &b)
 Unicode string concatenation of a normal ASCII string from left side. More...
 
Strng_t DD4hep::XML::operator+ (const std::string &a, const Strng_t &b)
 Unicode string concatenation of a STL string and an encapsulated string from the left. More...
 
Strng_t DD4hep::XML::operator+ (const Strng_t &a, const XmlChar *b)
 Unicode string concatenation of a encapsulated and raw unicode string from right side. More...
 
Strng_t DD4hep::XML::operator+ (const XmlChar *a, const Strng_t &b)
 Unicode string concatenation of a encapsulated and raw unicode string from left side. More...
 
Strng_t DD4hep::XML::operator+ (const XmlChar *a, const std::string &b)
 Unicode string concatenation of a raw unicode and an STL string from the right. More...
 
Strng_t DD4hep::XML::operator+ (const std::string &a, const XmlChar *b)
 Unicode string concatenation of a raw unicode and an STL string from the left. More...
 
Tag_t DD4hep::XML::operator+ (const Tag_t &a, const char *b)
 Tag/string concatenation with a normal ASCII string from right side. More...
 
Tag_t DD4hep::XML::operator+ (const char *a, const Tag_t &b)
 Tag/string concatenation with a normal ASCII string from left side. More...
 
Tag_t DD4hep::XML::operator+ (const Tag_t &a, const XmlChar *b)
 Tag/string concatenation with a unicode string from right side. More...
 
Tag_t DD4hep::XML::operator+ (const Tag_t &a, const Strng_t &b)
 Tag/string concatenation with a internal Xml string from right side. More...
 
Tag_t DD4hep::XML::operator+ (const Tag_t &a, const std::string &b)
 Tag/string concatenation with a STL string from right side. More...
 
bool DD4hep::XML::operator== (const std::string &c, const Tag_t &b)
 Equality operator between tag object and STL string. More...
 
template<>
INLINE std::string DD4hep::XML::Handle_t::attr< std::string > (const XmlChar *tag_value) const
 
void DD4hep::XML::dump_tree (Handle_t elt)
 Dump partial or full XML trees to stdout. More...
 
void DD4hep::XML::dump_tree (Handle_t elt, std::ostream &os)
 Dump partial or full XML trees. More...
 
void DD4hep::XML::dump_tree (Document doc)
 Dump partial or full XML documents to stdout. More...
 
void DD4hep::XML::dump_tree (Document doc, std::ostream &os)
 Dump partial or full XML documents. More...
 

Macro Definition Documentation

#define INLINE   inline

Definition at line 499 of file XMLElements.h.

#define M_PI   3.14159265358979323846

Definition at line 31 of file XMLElements.h.

#define RAD_2_DEGREE   57.295779513082320876798154814105

Definition at line 28 of file XMLElements.h.