| The Gaudi Framework v27r1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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 <iostream>
7 #include <string>
8 #include <vector>
9
19 class Property;
20
21 class GAUDI_API IProperty: virtual public IInterface {
22 public:
24 DeclareInterfaceID(IProperty,2,1);
25
27 virtual StatusCode setProperty( const Property& p // Reference to the input property
28 ) = 0;
30 virtual StatusCode setProperty( const std::string& s ) = 0;
32 virtual StatusCode setProperty( const std::string& n, const std::string& v ) = 0;
34 virtual StatusCode getProperty( Property* p // Pointer to property to be set
35 ) const = 0;
37 virtual const Property& getProperty( const std::string& name // Property name
38 ) const = 0;
40 virtual StatusCode getProperty( const std::string& n, std::string& v ) const = 0;
42 virtual const std::vector<Property*>& getProperties( ) const = 0;
43
45 virtual bool hasProperty(const std::string& name) const = 0;
46 };
47 #endif // GAUDIKERNEL_IPROPERTY_H
48
49
gaudiComponentHelp.name
name
Definition: gaudiComponentHelp.py:28
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:159
getProperty
const char *PyHelper() getProperty(IInterface *p, char *name)
Definition: Bootstrap.cpp:258
GaudiPluginService.cpluginsvc.n
list n
Definition: cpluginsvc.py:217
std::string
STL class.
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
IInterface
Definition of the basic interface.
Definition: IInterface.h:234
setProperty
bool PyHelper() setProperty(IInterface *p, char *name, char *value)
Definition: Bootstrap.cpp:254
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:14
Property
Property base class allowing Property* collections to be "homogeneous".
Definition: Property.h:38
std::vector< Property * >
gaudirun.s
string s
Definition: gaudirun.py:245
IProperty
The IProperty is the basic interface for all components which have properties that can be set or get...
Definition: IProperty.h:21
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:107
IInterface.h