![]() |
The Gaudi Framework
v28r0
|
#include <iostream>
#include <stdexcept>
#include <utility>
#include <vector>
#include "GaudiKernel/DataObjectHandleProperty.h"
#include "GaudiKernel/IProperty.h"
#include "GaudiKernel/Property.h"
Go to the source code of this file.
Classes | |
class | ToolHandle< T > |
Handle to be used in lieu of naked pointers to tools. More... | |
class | ServiceHandle< T > |
Handle to be used in lieu of naked pointers to services. More... | |
class | ToolHandleArray< T > |
Array of Handles to be used in lieu of vector of naked pointers to tools. More... | |
class | ServiceHandleArray< T > |
Array of Handles to be used in lieu of vector of naked pointers to tools. More... | |
class | DataObjectHandle< T > |
DataObjectHandle.h GaudiKernel/DataObjectHandle.h. More... | |
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 |
~PropertyMgr () override=default | |
virtual destructor More... | |
template<class TYPE > | |
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... | |
template<class TYPE > | |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, ToolHandle< TYPE > &ref, const std::string &doc="none") |
Declare a property (specialization) More... | |
template<class TYPE > | |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, ServiceHandle< TYPE > &ref, const std::string &doc="none") |
Declare a property (specialization) More... | |
template<class TYPE > | |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, ToolHandleArray< TYPE > &ref, const std::string &doc="none") |
Declare a property (specialization) More... | |
template<class TYPE > | |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, ServiceHandleArray< TYPE > &ref, const std::string &doc="none") |
Declare a property (specialization) More... | |
template<class TYPE > | |
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, DataObjectHandle< TYPE > &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 v28r1, 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 154 of file PropertyMgr.h.
|
private |
Definition at line 156 of file PropertyMgr.h.
|
private |
Definition at line 155 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, |
ToolHandle< TYPE > & | ref, | ||
const std::string & | doc = "none" |
||
) |
Declare a property (specialization)
Gaudi::Details::PropertyBase* declareProperty | ( | const std::string & | name, |
ServiceHandle< TYPE > & | ref, | ||
const std::string & | doc = "none" |
||
) |
Declare a property (specialization)
Gaudi::Details::PropertyBase* declareProperty | ( | const std::string & | name, |
ToolHandleArray< TYPE > & | ref, | ||
const std::string & | doc = "none" |
||
) |
Declare a property (specialization)
Gaudi::Details::PropertyBase* declareProperty | ( | const std::string & | name, |
ServiceHandleArray< TYPE > & | ref, | ||
const std::string & | doc = "none" |
||
) |
Declare a property (specialization)
Gaudi::Details::PropertyBase* declareProperty | ( | const std::string & | name, |
DataObjectHandle< TYPE > & | 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
|
overridedefault |
virtual destructor
|
private |
Interface hub reference (ApplicationMgr)
Definition at line 165 of file PropertyMgr.h.
|
private |
Collection of all declared properties.
Definition at line 159 of file PropertyMgr.h.
|
private |
Collection of all declared remote properties.
Definition at line 161 of file PropertyMgr.h.
|
private |
Properties to be deleted.
Definition at line 163 of file PropertyMgr.h.
PropertyMgr::PropertyMgr |
Definition at line 44 of file PropertyMgr.h.