| The Gaudi Framework v32r1 (f65d50dc)

IProperty.h
Go to the documentation of this file.
1 #ifndef GAUDIKERNEL_IPROPERTY_H
2 #define GAUDIKERNEL_IPROPERTY_H
3
4 // Include Files
5 #include "GaudiKernel/IInterface.h"
6 #include "GaudiKernel/PropertyFwd.h"
7 #include <iostream>
8 #include <string>
9 #include <vector>
10
20 class GAUDI_API IProperty : virtual public IInterface {
21 public:
23 DeclareInterfaceID( IProperty, 2, 1 );
24
26 virtual StatusCode setProperty( const Gaudi::Details::PropertyBase& p // Reference to the input property
27 ) = 0;
29 virtual StatusCode setProperty( const std::string& s ) = 0;
31 virtual StatusCode setProperty( const std::string& n, const std::string& v ) = 0;
33 virtual StatusCode getProperty( Gaudi::Details::PropertyBase* p // Pointer to property to be set
34 ) const = 0;
36 virtual const Gaudi::Details::PropertyBase& getProperty( const std::string& name // Property name
37 ) const = 0;
39 virtual StatusCode getProperty( const std::string& n, std::string& v ) const = 0;
41 virtual const std::vector<Gaudi::Details::PropertyBase*>& getProperties() const = 0;
42
44 virtual bool hasProperty( const std::string& name ) const = 0;
45 };
46 #endif // GAUDIKERNEL_IPROPERTY_H
gaudiComponentHelp.name
name
Definition: gaudiComponentHelp.py:41
Gaudi::Utils::hasProperty
GAUDI_API bool hasProperty(const IProperty *p, const std::string &name)
simple function which check the existence of the property with the given name.
Definition: Property.cpp:95
getProperty
const char *PyHelper() getProperty(IInterface *p, char *name)
Definition: Bootstrap.cpp:237
std::string
STL class.
PropertyFwd.h
GaudiPluginService.cpluginsvc.n
n
Definition: cpluginsvc.py:210
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
IInterface
Definition of the basic interface.
Definition: IInterface.h:244
setProperty
bool PyHelper() setProperty(IInterface *p, char *name, char *value)
Definition: Bootstrap.cpp:233
Gaudi::Details::PropertyBase
PropertyBase base class allowing PropertyBase* collections to be "homogeneous".
Definition: Property.h:32
DeclareInterfaceID
#define DeclareInterfaceID(iface, major, minor)
Macro to declare the interface ID when using the new mechanism of extending and implementing interfac...
Definition: IInterface.h:13
std::vector< Gaudi::Details::PropertyBase * >
gaudirun.s
string s
Definition: gaudirun.py:316
IProperty
The IProperty is the basic interface for all components which have properties that can be set or get.
Definition: IProperty.h:20
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:71
IInterface.h