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

Data implementation class of the Detector interface. More...

#include <DetectorLoad.h>

Inheritance diagram for dd4hep::DetectorLoad:
dd4hep::DetectorImp

Public Member Functions

 DetectorLoad ()=delete
 No defautl constructor. More...
 
 DetectorLoad (DetectorLoad &&copy)=delete
 No move constructor. More...
 
 DetectorLoad (const DetectorLoad &copy)=default
 Default copy constructor. More...
 
 DetectorLoad (Detector &description)
 Default constructor (public, if used as a handle) More...
 
virtual ~DetectorLoad ()
 Default destructor. More...
 
DetectorLoadoperator= (const DetectorLoad &copy)=default
 Copy assignment constructor. More...
 
DetectorLoadoperator= (DetectorLoad &&copy)=delete
 No move assignment. More...
 
virtual void processXML (const std::string &fname, xml::UriReader *entity_resolver=0)
 Process XML unit and adopt all data from source structure. More...
 
virtual void processXML (const xml::Handle_t &base, const std::string &fname, xml::UriReader *entity_resolver=0)
 Process XML unit and adopt all data from source structure. More...
 
virtual void processXMLString (const char *xmldata)
 Process XML unit and adopt all data from source string in momory. More...
 
virtual void processXMLString (const char *xmldata, xml::UriReader *entity_resolver)
 Process XML unit and adopt all data from source string in momory. More...
 
virtual void processXMLElement (const std::string &msg_source, const xml::Handle_t &root)
 Process a given DOM (sub-) tree. More...
 
virtual void processXMLElement (const xml::Handle_t &root, DetectorBuildType type)
 Process a given DOM (sub-) tree. More...
 

Protected Member Functions

 DetectorLoad (Detector *description)
 Default constructor (protected, for sub-classes) More...
 

Protected Attributes

Detectorm_detDesc = 0
 Reference to the Detector instance. More...
 

Friends

class Detector
 

Detailed Description

Data implementation class of the Detector interface.

This class is a view on the generic Detector implementation and deals with all issues parsing XML files.

The calls "fromXML" and "fromCompact" in the Detector implementation call this subclass.

Author
M.Frank
Version
1.0

Definition at line 44 of file DetectorLoad.h.

Constructor & Destructor Documentation

◆ DetectorLoad() [1/5]

DetectorLoad::DetectorLoad ( Detector description)
protected

Default constructor (protected, for sub-classes)

Definition at line 37 of file DetectorLoad.cpp.

◆ DetectorLoad() [2/5]

dd4hep::DetectorLoad::DetectorLoad ( )
delete

No defautl constructor.

◆ DetectorLoad() [3/5]

dd4hep::DetectorLoad::DetectorLoad ( DetectorLoad &&  copy)
delete

No move constructor.

◆ DetectorLoad() [4/5]

dd4hep::DetectorLoad::DetectorLoad ( const DetectorLoad copy)
default

Default copy constructor.

◆ DetectorLoad() [5/5]

DetectorLoad::DetectorLoad ( Detector description)

Default constructor (public, if used as a handle)

Definition at line 41 of file DetectorLoad.cpp.

◆ ~DetectorLoad()

DetectorLoad::~DetectorLoad ( )
virtual

Default destructor.

Standard destructor.

Definition at line 45 of file DetectorLoad.cpp.

Member Function Documentation

◆ operator=() [1/2]

DetectorLoad& dd4hep::DetectorLoad::operator= ( const DetectorLoad copy)
default

Copy assignment constructor.

◆ operator=() [2/2]

DetectorLoad& dd4hep::DetectorLoad::operator= ( DetectorLoad &&  copy)
delete

No move assignment.

◆ processXML() [1/2]

void DetectorLoad::processXML ( const std::string &  fname,
xml::UriReader entity_resolver = 0 
)
virtual

Process XML unit and adopt all data from source structure.

Definition at line 49 of file DetectorLoad.cpp.

◆ processXML() [2/2]

void DetectorLoad::processXML ( const xml::Handle_t base,
const std::string &  fname,
xml::UriReader entity_resolver = 0 
)
virtual

Process XML unit and adopt all data from source structure.

Definition at line 73 of file DetectorLoad.cpp.

◆ processXMLElement() [1/2]

void DetectorLoad::processXMLElement ( const std::string &  msg_source,
const xml::Handle_t root 
)
virtual

Process a given DOM (sub-) tree.

Definition at line 129 of file DetectorLoad.cpp.

◆ processXMLElement() [2/2]

void DetectorLoad::processXMLElement ( const xml::Handle_t root,
DetectorBuildType  type 
)
virtual

Process a given DOM (sub-) tree.

Definition at line 153 of file DetectorLoad.cpp.

◆ processXMLString() [1/2]

void DetectorLoad::processXMLString ( const char *  xmldata)
virtual

Process XML unit and adopt all data from source string in momory.

Definition at line 98 of file DetectorLoad.cpp.

◆ processXMLString() [2/2]

void DetectorLoad::processXMLString ( const char *  xmldata,
xml::UriReader entity_resolver 
)
virtual

Process XML unit and adopt all data from source string in momory.

Process XML unit and adopt all data from source string in momory. Subsequent parsers may use the entity resolver.

Subsequent parsers may use the entity resolver.

Definition at line 103 of file DetectorLoad.cpp.

Friends And Related Function Documentation

◆ Detector

friend class Detector
friend

Definition at line 46 of file DetectorLoad.h.

Member Data Documentation

◆ m_detDesc

Detector* dd4hep::DetectorLoad::m_detDesc = 0
protected

Reference to the Detector instance.

Definition at line 50 of file DetectorLoad.h.


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