The Gaudi Framework
v30r3 (a5ef0a68)
|
#include <iostream>
#include <stdexcept>
#include <utility>
#include <vector>
#include "GaudiKernel/DataObjectHandleBase.h"
#include "GaudiKernel/GaudiHandle.h"
#include "GaudiKernel/IProperty.h"
#include "GaudiKernel/Property.h"
Go to the source code of this file.
Typedefs | |
typedef std::vector< Gaudi::Details::PropertyBase * > | Properties |
typedef std::pair< std::string, std::pair< IProperty *, std::string > > | RemProperty |
typedef std::vector< RemProperty > | RemoteProperties |
Functions | |
PropertyMgr (const PropertyMgr &)=delete | |
PropertyMgr & | operator= (const PropertyMgr &)=delete |
template<class TYPE , typename = std::enable_if_t<!std::is_base_of<GaudiHandleBase, TYPE>::value && !std::is_base_of<GaudiHandleArrayBase, TYPE>::value && !std::is_base_of<DataObjectHandleBase, TYPE>::value>> | |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, TYPE &value, const std::string &doc="none") |
Declare a property (templated) More... | |
template<class TYPE > | |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, Gaudi::Property< TYPE > &prop, const std::string &doc="none") |
Declare a property (specialization) More... | |
template<class TYPE > | |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, Gaudi::Property< TYPE & > &prop, const std::string &doc="none") |
Declare a property (specialization) More... | |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, GaudiHandleBase &ref, const std::string &doc="none") |
Declare a property (specialization) More... | |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, GaudiHandleArrayBase &ref, const std::string &doc="none") |
Declare a property (specialization) More... | |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, DataObjectHandleBase &ref, const std::string &doc="none") |
Declare a property (specialization) More... | |
Gaudi::Details::PropertyBase * | declareRemoteProperty (const std::string &name, IProperty *rsvc, const std::string &rname="") |
Declare a remote property. More... | |
StatusCode | setProperty (const Gaudi::Details::PropertyBase &p) override |
set the property form another property More... | |
StatusCode | setProperty (const std::string &s) override |
set the property from the property formatted string More... | |
StatusCode | setProperty (const std::string &n, const std::string &v) override |
set the property from name and the value More... | |
StatusCode | getProperty (Gaudi::Details::PropertyBase *p) const override |
get the property More... | |
const Gaudi::Details::PropertyBase & | getProperty (const std::string &name) const override |
get the property by name More... | |
StatusCode | getProperty (const std::string &n, std::string &v) const override |
convert the property to the string More... | |
const std::vector< Gaudi::Details::PropertyBase * > & | getProperties () const override |
get all properties More... | |
bool | hasProperty (const std::string &name) const override |
Return true if we have a property with the given name. More... | |
StatusCode | queryInterface (const InterfaceID &iid, void **pinterface) override |
Gaudi::Details::PropertyBase * | property (const std::string &name) const |
Gaudi::Details::PropertyBase * | property (const std::string &name, const std::vector< Gaudi::Details::PropertyBase * > &props) const |
get the property by name form the proposed list More... | |
void | assertUniqueName (const std::string &name) const |
Throw an exception if the name is already present in the list of properties (see GAUDI-1023). More... | |
Variables | |
class GAUDI_API[[deprecated("will be removed in v29r0, consider using PropertyHolder instead")]] | PropertyMgr |
Properties | m_properties |
Collection of all declared properties. More... | |
RemoteProperties | m_remoteProperties |
Collection of all declared remote properties. More... | |
std::vector< std::unique_ptr< Gaudi::Details::PropertyBase > > | m_todelete |
Properties to be deleted. More... | |
IInterface * | m_pOuter |
Interface hub reference (ApplicationMgr) More... | |
|
private |
Definition at line 133 of file PropertyMgr.h.
|
private |
Definition at line 135 of file PropertyMgr.h.
|
private |
Definition at line 134 of file PropertyMgr.h.
|
private |
Throw an exception if the name is already present in the list of properties (see GAUDI-1023).
Gaudi::Details::PropertyBase* declareProperty | ( | const std::string & | name, |
TYPE & | value, | ||
const std::string & | doc = "none" |
||
) |
Declare a property (templated)
Gaudi::Details::PropertyBase* declareProperty | ( | const std::string & | name, |
Gaudi::Property< TYPE > & | prop, | ||
const std::string & | doc = "none" |
||
) |
Declare a property (specialization)
Gaudi::Details::PropertyBase* declareProperty | ( | const std::string & | name, |
Gaudi::Property< TYPE & > & | prop, | ||
const std::string & | doc = "none" |
||
) |
Declare a property (specialization)
Gaudi::Details::PropertyBase* declareProperty | ( | const std::string & | name, |
GaudiHandleBase & | ref, | ||
const std::string & | doc = "none" |
||
) |
Declare a property (specialization)
Gaudi::Details::PropertyBase* declareProperty | ( | const std::string & | name, |
GaudiHandleArrayBase & | ref, | ||
const std::string & | doc = "none" |
||
) |
Declare a property (specialization)
Gaudi::Details::PropertyBase* declareProperty | ( | const std::string & | name, |
DataObjectHandleBase & | ref, | ||
const std::string & | doc = "none" |
||
) |
Declare a property (specialization)
Gaudi::Details::PropertyBase* declareRemoteProperty | ( | const std::string & | name, |
IProperty * | rsvc, | ||
const std::string & | rname = "" |
||
) |
Declare a remote property.
|
override |
get all properties
|
override |
get the property
|
override |
get the property by name
|
override |
convert the property to the string
|
override |
Return true if we have a property with the given name.
|
delete |
|
protected |
|
private |
get the property by name form the proposed list
|
delete |
|
override |
|
override |
set the property form another property
|
override |
set the property from the property formatted string
|
override |
set the property from name and the value
|
private |
Interface hub reference (ApplicationMgr)
Definition at line 144 of file PropertyMgr.h.
|
private |
Collection of all declared properties.
Definition at line 138 of file PropertyMgr.h.
|
private |
Collection of all declared remote properties.
Definition at line 140 of file PropertyMgr.h.
|
private |
Properties to be deleted.
Definition at line 142 of file PropertyMgr.h.
PropertyMgr::PropertyMgr |
Definition at line 33 of file PropertyMgr.h.