DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Public Types | Public Member Functions | Public Attributes | List of all members
dd4hep::xml::Document Class Reference

Class supporting the basic functionality of an XML document. More...

#include <XMLElements.h>

Inheritance diagram for dd4hep::xml::Document:
dd4hep::xml::DocumentHolder

Public Types

typedef XmlDocument * DOC
 

Public Member Functions

 Document ()
 Default Constructor. More...
 
 Document (DOC d)
 Initializing Constructor. More...
 
 Document (const Document &d)=default
 Copy constructor. More...
 
Documentoperator= (const Document &d)=default
 Assignment. More...
 
 ~Document ()=default
 Destructor. More...
 
 operator DOC () const
 Auto-conversion to DOM document. More...
 
DOC operator-> () const
 Accessot to DOM document behaviour using arrow operator. More...
 
DOC ptr () const
 Accessot to DOM document behaviour. More...
 
Handle_t root () const
 Access the ROOT eleemnt of the DOM document. More...
 
Handle_t createElt (const XmlChar *tag) const
 Create DOM element. More...
 
Handle_t clone (Handle_t source) const
 Clone a DOM element / sub-tree. More...
 
std::string uri () const
 Acces the document URI. More...
 

Public Attributes

DOC m_doc
 

Detailed Description

Class supporting the basic functionality of an XML document.

User class encapsulating a DOM document. Nothing special - normal handle around pointer.

Author
M.Frank
Version
1.0

Definition at line 697 of file XMLElements.h.

Member Typedef Documentation

◆ DOC

typedef XmlDocument* dd4hep::xml::Document::DOC

Definition at line 699 of file XMLElements.h.

Constructor & Destructor Documentation

◆ Document() [1/3]

dd4hep::xml::Document::Document ( )
inline

Default Constructor.

Definition at line 703 of file XMLElements.h.

◆ Document() [2/3]

dd4hep::xml::Document::Document ( DOC  d)
inline

Initializing Constructor.

Definition at line 705 of file XMLElements.h.

◆ Document() [3/3]

dd4hep::xml::Document::Document ( const Document d)
default

Copy constructor.

◆ ~Document()

dd4hep::xml::Document::~Document ( )
default

Destructor.

Member Function Documentation

◆ clone()

Handle_t Document::clone ( Handle_t  source) const

Clone a DOM element / sub-tree.

Definition at line 1260 of file XMLElements.cpp.

◆ createElt()

Handle_t Document::createElt ( const XmlChar tag) const

Create DOM element.

Definition at line 1031 of file XMLElements.cpp.

◆ operator DOC()

dd4hep::xml::Document::operator DOC ( ) const
inline

Auto-conversion to DOM document.

Definition at line 713 of file XMLElements.h.

◆ operator->()

DOC dd4hep::xml::Document::operator-> ( ) const
inline

Accessot to DOM document behaviour using arrow operator.

Definition at line 715 of file XMLElements.h.

◆ operator=()

Document& dd4hep::xml::Document::operator= ( const Document d)
default

Assignment.

◆ ptr()

DOC dd4hep::xml::Document::ptr ( ) const
inline

Accessot to DOM document behaviour.

Definition at line 717 of file XMLElements.h.

◆ root()

Handle_t Document::root ( ) const

Access the ROOT eleemnt of the DOM document.

Definition at line 1040 of file XMLElements.cpp.

◆ uri()

std::string Document::uri ( ) const

Acces the document URI.

Definition at line 1047 of file XMLElements.cpp.

Member Data Documentation

◆ m_doc

DOC dd4hep::xml::Document::m_doc

Definition at line 700 of file XMLElements.h.


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