DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Classes | Namespaces | Macros | Typedefs | Functions
XMLElements.cpp File Reference
#include <xercesc/util/Xerces_autoconf_config.hpp>
#include <xercesc/util/XMLString.hpp>
#include <xercesc/dom/DOMElement.hpp>
#include <xercesc/dom/DOMDocument.hpp>
#include <xercesc/dom/DOMNodeList.hpp>
#include <xercesc/dom/DOM.hpp>
#include <XML/config.h>
#include <XML/XMLElements.h>
#include <XML/Printout.h>
#include <XML/XMLTags.h>
#include <iostream>
#include <stdexcept>
#include <cstdio>
#include <map>

Go to the source code of this file.

Classes

union  Xml
 Union to ease castless object access when using XercesC. More...
 

Namespaces

 dd4hep
 Namespace for the AIDA detector description toolkit.
 

Macros

#define _D(x)   Xml(x).d
 
#define _E(x)   Xml(x).e
 
#define _N(x)   Xml(x).n
 
#define _L(x)   Xml(x).l
 
#define _XE(x)   Xml(x).xe
 
#define ELEMENT_NODE_TYPE   xercesc::DOMNode::ELEMENT_NODE
 
#define DO1(buf, i)   {s1 +=(unsigned char)buf[i]; s2 += s1;}
 
#define DO2(buf, i)   DO1(buf,i); DO1(buf,i+1);
 
#define DO4(buf, i)   DO2(buf,i); DO2(buf,i+2);
 
#define DO8(buf, i)   DO4(buf,i); DO4(buf,i+4);
 
#define DO16(buf)   DO8(buf,0); DO8(buf,8);
 

Typedefs

typedef unsigned int() fcn_t(unsigned int, const XmlChar *, size_t)
 Checksum (sub-)tree of a xml document/tree. More...
 

Functions

std::pair< int, double > dd4hep::_toInteger (const std::string &value)
 
std::pair< int, double > dd4hep::_toFloatingPoint (const std::string &value)
 
void dd4hep::_toDictionary (const std::string &name, const std::string &value, const std::string &typ)
 Enter name value pair to the dictionary. More...
 
std::string dd4hep::_getEnviron (const std::string &env)
 Evaluate string constant using environment stored in the evaluator. More...
 

Macro Definition Documentation

◆ _D

#define _D (   x)    Xml(x).d

Definition at line 63 of file XMLElements.cpp.

◆ _E

#define _E (   x)    Xml(x).e

Definition at line 64 of file XMLElements.cpp.

◆ _L

#define _L (   x)    Xml(x).l

Definition at line 66 of file XMLElements.cpp.

◆ _N

#define _N (   x)    Xml(x).n

Definition at line 65 of file XMLElements.cpp.

◆ _XE

#define _XE (   x)    Xml(x).xe

Definition at line 67 of file XMLElements.cpp.

◆ DO1

#define DO1 (   buf,
 
)    {s1 +=(unsigned char)buf[i]; s2 += s1;}

◆ DO16

#define DO16 (   buf)    DO8(buf,0); DO8(buf,8);

◆ DO2

#define DO2 (   buf,
 
)    DO1(buf,i); DO1(buf,i+1);

◆ DO4

#define DO4 (   buf,
 
)    DO2(buf,i); DO2(buf,i+2);

◆ DO8

#define DO8 (   buf,
 
)    DO4(buf,i); DO4(buf,i+4);

◆ ELEMENT_NODE_TYPE

#define ELEMENT_NODE_TYPE   xercesc::DOMNode::ELEMENT_NODE

Definition at line 124 of file XMLElements.cpp.

Typedef Documentation

◆ fcn_t

typedef unsigned int() fcn_t(unsigned int, const XmlChar *, size_t)

Checksum (sub-)tree of a xml document/tree.

Definition at line 989 of file XMLElements.cpp.