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

Property object as base class for all objects supporting properties. More...

#include <ComponentProperties.h>

Inheritance diagram for dd4hep::PropertyConfigurable:
dd4hep::PropertyInterface dd4hep::cond::ConditionsDataLoader dd4hep::cond::ConditionsManagerObject dd4hep::cond::ConditionsMultiLoader dd4hep::cond::ConditionsSnapshotRootLoader dd4hep::cond::ConditionsXmlLoader dd4hep::cond::Manager_Type1

Public Member Functions

 PropertyConfigurable ()
 Standard constructor. More...
 
virtual ~PropertyConfigurable ()
 Default destructor. More...
 
virtual PropertyManager & properties () override
 Access to the properties of the object. More...
 
virtual const PropertyManager & properties () const override
 Access to the properties of the object. More...
 
virtual bool hasProperty (const std::string &name) const override
 Check property for existence. More...
 
virtual Property & property (const std::string &name) override
 Access single property. More...
 
template<typename T >
void declareProperty (const std::string &nam, T &val)
 Declare property. More...
 
template<typename T >
void declareProperty (const char *nam, T &val)
 Declare property. More...
 
- Public Member Functions inherited from dd4hep::PropertyInterface
virtual ~PropertyInterface ()=default
 Default destructor. More...
 

Protected Attributes

PropertyManager m_properties
 Property pool. More...
 

Detailed Description

Property object as base class for all objects supporting properties.

Note: This class cannot be saved to a ROOT file!

Author
M.Frank
Version
1.0

Definition at line 255 of file ComponentProperties.h.

Constructor & Destructor Documentation

◆ PropertyConfigurable()

PropertyConfigurable::PropertyConfigurable ( )

Standard constructor.

Standard PropertyConfigurable constructor.

Definition at line 167 of file ComponentProperties.cpp.

◆ ~PropertyConfigurable()

PropertyConfigurable::~PropertyConfigurable ( )
virtual

Default destructor.

Default PropertyConfigurable destructor.

Definition at line 171 of file ComponentProperties.cpp.

Member Function Documentation

◆ declareProperty() [1/2]

template<typename T >
void dd4hep::PropertyConfigurable::declareProperty ( const char *  nam,
T &  val 
)

Declare property.

Definition at line 291 of file ComponentProperties.h.

◆ declareProperty() [2/2]

template<typename T >
void dd4hep::PropertyConfigurable::declareProperty ( const std::string &  nam,
T &  val 
)

Declare property.

Definition at line 285 of file ComponentProperties.h.

◆ hasProperty()

bool PropertyConfigurable::hasProperty ( const std::string &  name) const
overridevirtual

Check property for existence.

Implements dd4hep::PropertyInterface.

Definition at line 175 of file ComponentProperties.cpp.

◆ properties() [1/2]

virtual const PropertyManager& dd4hep::PropertyConfigurable::properties ( ) const
inlineoverridevirtual

Access to the properties of the object.

Implements dd4hep::PropertyInterface.

Definition at line 270 of file ComponentProperties.h.

◆ properties() [2/2]

virtual PropertyManager& dd4hep::PropertyConfigurable::properties ( )
inlineoverridevirtual

Access to the properties of the object.

Implements dd4hep::PropertyInterface.

Definition at line 266 of file ComponentProperties.h.

◆ property()

Property & PropertyConfigurable::property ( const std::string &  name)
overridevirtual

Access single property.

Implements dd4hep::PropertyInterface.

Definition at line 180 of file ComponentProperties.cpp.

Member Data Documentation

◆ m_properties

PropertyManager dd4hep::PropertyConfigurable::m_properties
protected

Property pool.

Definition at line 258 of file ComponentProperties.h.


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