![]() |
![]() |
DD4hep - The AIDA detector description toolkit for high energy physics experiments
DD4hep
Rev:Unversioneddirectory
|
#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::Evaluator & | DD4hep::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 |
| #define _D | ( | x | ) | Xml(x).d |
Definition at line 45 of file XMLElements.cpp.
Referenced by DD4hep::XML::Element::addComment(), DD4hep::XML::DocumentHolder::assign(), DD4hep::XML::Handle_t::clone(), DD4hep::XML::Document::clone(), DD4hep::XML::Document::createElt(), DD4hep::XML::Document::root(), and DD4hep::XML::Document::uri().
Definition at line 46 of file XMLElements.cpp.
Referenced by DD4hep::XML::Handle_t::attributes(), DD4hep::XML::Handle_t::clone(), DD4hep::XML::Document::clone(), DD4hep::Conditions::Operators::collectAllConditions(), DD4hep::Conditions::Test::TestEnv::dump_conditions_pools(), DD4hep::XML::Handle_t::hasAttr(), DD4hep::XML::NodeList::next(), DD4hep::XML::NodeList::previous(), DD4hep::XML::Handle_t::rawTag(), DD4hep::XML::Handle_t::rawText(), DD4hep::XML::Handle_t::removeAttrs(), DD4hep::XML::Handle_t::removeChildren(), DD4hep::Conditions::ConditionsTextRepository::save(), DD4hep::Conditions::ConditionsRepository::save(), DD4hep::XML::Handle_t::setAttr(), and DD4hep::XML::Handle_t::setAttrs().
| #define _L | ( | x | ) | Xml(x).l |
Definition at line 48 of file XMLElements.cpp.
| #define _N | ( | x | ) | Xml(x).n |
Definition at line 47 of file XMLElements.cpp.
Referenced by DD4hep::XML::Element::addComment(), DD4hep::XML::Handle_t::append(), DD4hep::XML::Handle_t::clone(), DD4hep::XML::Element::document(), DD4hep::XML::Collection_t::operator++(), DD4hep::XML::Collection_t::operator--(), DD4hep::XML::Handle_t::parent(), DD4hep::XML::Element::parentElement(), DD4hep::XML::Handle_t::rawValue(), DD4hep::XML::Handle_t::remove(), DD4hep::XML::Handle_t::setText(), and DD4hep::XML::Handle_t::setValue().
| #define _XE | ( | x | ) | Xml(x).xe |
Definition at line 49 of file XMLElements.cpp.
Referenced by DD4hep::XML::Handle_t::clone(), DD4hep::XML::Document::clone(), DD4hep::XML::Document::createElt(), DD4hep::XML::NodeList::next(), DD4hep::XML::NodeList::previous(), and DD4hep::XML::Document::root().
| #define DO1 | ( | buf, | |
| i | |||
| ) | {s1 +=(unsigned char)buf[i]; s2 += s1;} |
| #define ELEMENT_NODE_TYPE xercesc::DOMNode::ELEMENT_NODE |
Definition at line 112 of file XMLElements.cpp.
Referenced by DD4hep::XML::Handle_t::clone(), DD4hep::XML::Collection_t::operator++(), DD4hep::XML::Collection_t::operator--(), and DD4hep::XML::Element::parentElement().
| 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.
|
inlinestatic |
Definition at line 215 of file XMLElements.cpp.
Referenced by DD4hep::XML::_ptrToString(), and DD4hep::XML::_toString().
|
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().
|
inlinestatic |
Definition at line 407 of file XMLElements.cpp.
|
static |
Definition at line 29 of file XMLElements.cpp.
Referenced by DD4hep::XML::Handle_t::numChildren().
1.8.6