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

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

#include <XMLElements.h>

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

Public Member Functions

 DocumentHolder ()=default
 Default Constructor. More...
 
 DocumentHolder (const DocumentHolder &copy)=delete
 Default Constructor. More...
 
 DocumentHolder (DOC d)
 Constructor. More...
 
DocumentHolderoperator= (const DocumentHolder &copy)=delete
 Assignment operator. More...
 
DocumentHolderassign (DOC d)
 Assign new document. Old document is dropped. More...
 
virtual ~DocumentHolder ()
 Standard destructor - releases the document. More...
 
- Public Member Functions inherited from dd4hep::xml::Document
 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...
 

Additional Inherited Members

- Public Types inherited from dd4hep::xml::Document
typedef XmlDocument * DOC
 
- Public Attributes inherited from dd4hep::xml::Document
DOC m_doc
 

Detailed Description

Class supporting the basic functionality of an XML document including ownership.

User class encapsulating a DOM document. Nothing special - normal handle around pointer. Contrary to the Document class, on destruction the XML document shall be destroyed and the corresponding resources released.

Author
M.Frank
Version
1.0

Definition at line 741 of file XMLElements.h.

Constructor & Destructor Documentation

◆ DocumentHolder() [1/3]

dd4hep::xml::DocumentHolder::DocumentHolder ( )
default

Default Constructor.

◆ DocumentHolder() [2/3]

dd4hep::xml::DocumentHolder::DocumentHolder ( const DocumentHolder copy)
delete

Default Constructor.

◆ DocumentHolder() [3/3]

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

Constructor.

Definition at line 748 of file XMLElements.h.

◆ ~DocumentHolder()

DocumentHolder::~DocumentHolder ( )
virtual

Standard destructor - releases the document.

Definition at line 1070 of file XMLElements.cpp.

Member Function Documentation

◆ assign()

DocumentHolder & DocumentHolder::assign ( DOC  d)

Assign new document. Old document is dropped.

Definition at line 1056 of file XMLElements.cpp.

◆ operator=()

DocumentHolder& dd4hep::xml::DocumentHolder::operator= ( const DocumentHolder copy)
delete

Assignment operator.


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