![]() |
The Gaudi Framework
v26r2
|
Property manager helper class. More...
#include <GaudiKernel/PropertyMgr.h>


Public Member Functions | |
| PropertyMgr (IInterface *iface=0) | |
| constructor from the interface More... | |
| PropertyMgr (const PropertyMgr &) | |
| virtual | ~PropertyMgr () |
| virtual destructor More... | |
| PropertyMgr & | operator= (const PropertyMgr &) |
| template<class TYPE > | |
| Property * | declareProperty (const std::string &name, TYPE &value, const std::string &doc="none") |
| Declare a property (templated) More... | |
| template<class TYPE > | |
| Property * | declareProperty (const std::string &name, SimpleProperty< TYPE > &prop, const std::string &doc="none") |
| Declare a property (specialization) More... | |
| template<class TYPE > | |
| Property * | declareProperty (const std::string &name, SimplePropertyRef< TYPE > &prop, const std::string &doc="none") |
| Declare a property (specialization) More... | |
| template<class TYPE > | |
| Property * | declareProperty (const std::string &name, ToolHandle< TYPE > &ref, const std::string &doc="none") |
| Declare a property (specialization) More... | |
| template<class TYPE > | |
| Property * | declareProperty (const std::string &name, ServiceHandle< TYPE > &ref, const std::string &doc="none") |
| Declare a property (specialization) More... | |
| template<class TYPE > | |
| Property * | declareProperty (const std::string &name, ToolHandleArray< TYPE > &ref, const std::string &doc="none") |
| Declare a property (specialization) More... | |
| template<class TYPE > | |
| Property * | declareProperty (const std::string &name, ServiceHandleArray< TYPE > &ref, const std::string &doc="none") |
| Declare a property (specialization) More... | |
| Property * | declareRemoteProperty (const std::string &name, IProperty *rsvc, const std::string &rname="") |
| Declare a remote property. More... | |
| StatusCode | setProperty (const Property &p) |
| set the property form another property More... | |
| StatusCode | setProperty (const std::string &s) |
| set the property from the property formatted string More... | |
| StatusCode | setProperty (const std::string &n, const std::string &v) |
| set the property from name and the value More... | |
| StatusCode | getProperty (Property *p) const |
| get the property More... | |
| const Property & | getProperty (const std::string &name) const |
| get the property by name More... | |
| StatusCode | getProperty (const std::string &n, std::string &v) const |
| convert the property to the string More... | |
| const std::vector< Property * > & | getProperties () const |
| get all properties More... | |
| bool | hasProperty (const std::string &name) const |
| Return true if we have a property with the given name. More... | |
| StatusCode | queryInterface (const InterfaceID &iid, void **pinterface) |
| Set the void** to the pointer to the requested interface of the instance. More... | |
Public Member Functions inherited from extend_interfaces1< IProperty > | |
| virtual | ~extend_interfaces1 () |
| Virtual destructor. More... | |
Public Member Functions inherited from IProperty | |
| DeclareInterfaceID (IProperty, 2, 1) | |
| InterfaceID. More... | |
Public Member Functions inherited from IInterface | |
| virtual void * | i_cast (const InterfaceID &) const =0 |
| main cast function More... | |
| virtual std::vector< std::string > | getInterfaceNames () const =0 |
| Returns a vector of strings containing the names of all the implemented interfaces. More... | |
| virtual unsigned long | addRef ()=0 |
| Increment the reference count of Interface instance. More... | |
| virtual unsigned long | release ()=0 |
| Release Interface instance. More... | |
| virtual unsigned long | refCount () const =0 |
| Current reference count. More... | |
| virtual | ~IInterface () |
| Virtual destructor. More... | |
Protected Member Functions | |
| Property * | property (const std::string &name) const |
Private Types | |
| typedef std::vector< Property * > | Properties |
| typedef std::pair< std::string, std::pair< IProperty *, std::string > > | RemProperty |
| typedef std::vector< RemProperty > | RemoteProperties |
Private Member Functions | |
| Property * | property (const std::string &name, const std::vector< Property * > &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... | |
Private Attributes | |
| Properties | m_properties |
| Collection of all declared properties. More... | |
| RemoteProperties | m_remoteProperties |
| Collection of all declared remote properties. More... | |
| Properties | m_todelete |
| Properties to be deleted. More... | |
| std::vector< bool > | m_isOwned |
| Flag to decide to delete or not a propertyRef. More... | |
| IInterface * | m_pOuter |
| Interface hub reference (ApplicationMgr) More... | |
Additional Inherited Members | |
Public Types inherited from implements1< IProperty > | |
| typedef implements1 | base_class |
| Typedef to this class. More... | |
| typedef extend_interfaces1< IProperty > | extend_interfaces_base |
| Typedef to the base of this class. More... | |
| typedef extend_interfaces_base::ext_iids | interfaces |
| MPL set of all the implemented interfaces. More... | |
Public Types inherited from extend_interfaces1< IProperty > | |
| typedef IProperty::iid::iids::type | ext_iids |
| MPL set of interfaces extended by this one. More... | |
Public Types inherited from IInterface | |
| enum | Status { SUCCESS = 1, NO_INTERFACE, VERSMISMATCH, LAST_ERROR } |
| Return status. More... | |
| typedef Gaudi::InterfaceId< IInterface, 0, 0 > | iid |
| Interface ID. More... | |
| typedef mpl::set1< iid > | ext_iids |
| Extra interfaces. More... | |
Static Public Member Functions inherited from IInterface | |
| static const InterfaceID & | interfaceID () |
| Return an instance of InterfaceID identifying the interface. More... | |
Property manager helper class.
This class is used by algorithms and services for helping to manage its own set of properties. It implements the IProperty interface.
Definition at line 34 of file PropertyMgr.h.
|
private |
Definition at line 158 of file PropertyMgr.h.
|
private |
Definition at line 161 of file PropertyMgr.h.
|
private |
Definition at line 160 of file PropertyMgr.h.
| PropertyMgr::PropertyMgr | ( | IInterface * | iface = 0 | ) |
constructor from the interface
Definition at line 54 of file PropertyMgr.cpp.
| PropertyMgr::PropertyMgr | ( | const PropertyMgr & | right | ) |
Definition at line 65 of file PropertyMgr.cpp.
|
virtual |
|
private |
Throw an exception if the name is already present in the list of properties (see GAUDI-1023).
Definition at line 270 of file PropertyMgr.cpp.
|
inline |
Declare a property (templated)
Definition at line 182 of file PropertyMgr.h.
|
inline |
Declare a property (specialization)
Declare a property (templated)
Definition at line 201 of file PropertyMgr.h.
|
inline |
Declare a property (specialization)
Declare a property (templated)
Definition at line 220 of file PropertyMgr.h.
|
inline |
Declare a property (specialization)
Definition at line 239 of file PropertyMgr.h.
|
inline |
Declare a property (specialization)
Definition at line 256 of file PropertyMgr.h.
|
inline |
Declare a property (specialization)
Definition at line 273 of file PropertyMgr.h.
|
inline |
Declare a property (specialization)
Definition at line 290 of file PropertyMgr.h.
| Property * PropertyMgr::declareRemoteProperty | ( | const std::string & | name, |
| IProperty * | rsvc, | ||
| const std::string & | rname = "" |
||
| ) |
Declare a remote property.
Definition at line 114 of file PropertyMgr.cpp.
|
virtual |
get all properties
Implements IProperty.
Definition at line 249 of file PropertyMgr.cpp.
|
virtual |
get the property
Implements IProperty.
Definition at line 205 of file PropertyMgr.cpp.
|
virtual |
get the property by name
Implements IProperty.
Definition at line 221 of file PropertyMgr.cpp.
|
virtual |
convert the property to the string
Implements IProperty.
Definition at line 234 of file PropertyMgr.cpp.
|
virtual |
Return true if we have a property with the given name.
Implements IProperty.
Definition at line 264 of file PropertyMgr.cpp.
| PropertyMgr & PropertyMgr::operator= | ( | const PropertyMgr & | right | ) |
Definition at line 92 of file PropertyMgr.cpp.
|
protected |
Definition at line 140 of file PropertyMgr.cpp.
|
private |
get the property by name form the proposed list
Definition at line 128 of file PropertyMgr.cpp.
|
virtual |
Set the void** to the pointer to the requested interface of the instance.
Implements IInterface.
Definition at line 253 of file PropertyMgr.cpp.
|
virtual |
set the property form another property
Implements IProperty.
Definition at line 162 of file PropertyMgr.cpp.
|
virtual |
set the property from the property formatted string
Implements IProperty.
Definition at line 179 of file PropertyMgr.cpp.
|
virtual |
set the property from name and the value
Implements IProperty.
Definition at line 193 of file PropertyMgr.cpp.
|
private |
Flag to decide to delete or not a propertyRef.
Definition at line 172 of file PropertyMgr.h.
|
private |
Interface hub reference (ApplicationMgr)
Definition at line 174 of file PropertyMgr.h.
|
private |
Collection of all declared properties.
Definition at line 166 of file PropertyMgr.h.
|
private |
Collection of all declared remote properties.
Definition at line 168 of file PropertyMgr.h.
|
private |
Properties to be deleted.
Definition at line 170 of file PropertyMgr.h.