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 | Variables
XMLElements.cpp File Reference
#include "DD4hep/Printout.h"
#include "XML/Evaluator.h"
#include "XML/XMLElements.h"
#include "XML/XMLTags.h"
#include <iostream>
#include <stdexcept>
#include <cstdio>
#include <map>
#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"

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

XmlTools::EvaluatorDD4hep::evaluator ()
 
template<typename T >
static string __to_string (T value, const char *fmt)
 
template<typename B >
static string i_add (const string &a, B b)
 
static unsigned int adler32 (unsigned int adler, const XmlChar *xml_buff, size_t len)
 Checksum (sub-)tree of a xml document/tree. More...
 

Variables

static const size_t INVALID_NODE = ~0U
 

Macro Definition Documentation

#define _D (   x)    Xml(x).d
#define _E (   x)    Xml(x).e
#define _L (   x)    Xml(x).l

Definition at line 48 of file XMLElements.cpp.

#define _N (   x)    Xml(x).n
#define _XE (   x)    Xml(x).xe
#define DO1 (   buf,
 
)    {s1 +=(unsigned char)buf[i]; s2 += s1;}
#define DO16 (   buf)    DO8(buf,0); DO8(buf,8);

Referenced by adler32().

#define DO2 (   buf,
 
)    DO1(buf,i); DO1(buf,i+1);
#define DO4 (   buf,
 
)    DO2(buf,i); DO2(buf,i+2);
#define DO8 (   buf,
 
)    DO4(buf,i); DO4(buf,i+4);
#define ELEMENT_NODE_TYPE   xercesc::DOMNode::ELEMENT_NODE

Typedef Documentation

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

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

Definition at line 981 of file XMLElements.cpp.

Function Documentation

template<typename T >
static string __to_string ( T  value,
const char *  fmt 
)
inlinestatic

Definition at line 215 of file XMLElements.cpp.

Referenced by DD4hep::XML::_ptrToString(), and DD4hep::XML::_toString().

static unsigned int adler32 ( unsigned int  adler,
const XmlChar xml_buff,
size_t  len 
)
static

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

Definition at line 943 of file XMLElements.cpp.

References DO16.

Referenced by DD4hep::XML::Handle_t::checksum().

template<typename B >
static string i_add ( const string &  a,
b 
)
inlinestatic

Definition at line 407 of file XMLElements.cpp.

Variable Documentation

const size_t INVALID_NODE = ~0U
static

Definition at line 29 of file XMLElements.cpp.

Referenced by DD4hep::XML::Handle_t::numChildren().