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

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

#include <Elements.h>

Inheritance diagram for dd4hep::json::DocumentHolder:
dd4hep::json::Document

Public Member Functions

 DocumentHolder ()
 Default Constructor. More...
 
 DocumentHolder (DOC d)
 Constructor. 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::json::Document
 Document (DOC d=0)
 Constructor. 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...
 

Additional Inherited Members

- Public Types inherited from dd4hep::json::Document
typedef JsonElementDOC
 
- Public Attributes inherited from dd4hep::json::Document
DOC m_doc
 

Detailed Description

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

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

Author
M.Frank
Version
1.0

Definition at line 332 of file Elements.h.

Constructor & Destructor Documentation

◆ DocumentHolder() [1/2]

dd4hep::json::DocumentHolder::DocumentHolder ( )
inline

Default Constructor.

Definition at line 335 of file Elements.h.

◆ DocumentHolder() [2/2]

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

Constructor.

Definition at line 338 of file Elements.h.

◆ ~DocumentHolder()

DocumentHolder::~DocumentHolder ( )
virtual

Standard destructor - releases the document.

Definition at line 374 of file Elements.cpp.

Member Function Documentation

◆ assign()

DocumentHolder & DocumentHolder::assign ( DOC  d)

Assign new document. Old document is dropped.

Definition at line 364 of file Elements.cpp.


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