| The Gaudi Framework v27r1

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

- File List
- File Members

PropertyList.h
Go to the documentation of this file.
1 #ifndef GAUDIKERNEL_PROPERTYLIST_H
2 #define GAUDIKERNEL_PROPERTYLIST_H
3
4 // Include Files
5 #include "Property.h"
6 #include "GaudiKernel/IProperty.h"
7 #include <vector>
8
16 class GAUDI_API PropertyList : public Property {
17 public:
19 PropertyList();
21 PropertyList( const std::string& name );
23 virtual ~PropertyList();
24
26 bool isRef() const { return false; }
27
29 void addProperty( const std::string& name, Property& p );
31 void addProperty( Property& p );
33 void removeProperty( const std::string& name );
35 void removeProperty( Property& p );
36
38 bool assign( const Property& p );
40 bool load( Property& p) const;
41
43 bool assign( const std::string& name, const Property& p );
45 bool load( const std::string& name, Property& p) const;
46
48 const Property& getProperty( const std::string& name) const;
50 const std::vector<Property*>& getProperties() const;
51 private:
52 std::vector<Property*> m_propertyList;
53 };
54
55 #endif // GAUDIKERNEL_PROPERTYLIST_H
56
PropertyList::isRef
bool isRef() const
Accessor members (const)
Definition: PropertyList.h:26
Property::assign
virtual bool assign(const Property &source)=0
import the property value form the source
gaudiComponentHelp.name
name
Definition: gaudiComponentHelp.py:28
PropertyList
List of properties.
Definition: PropertyList.h:16
Property::load
virtual bool load(Property &dest) const =0
export the property value to the destination
PropertyList::m_propertyList
std::vector< Property * > m_propertyList
Definition: PropertyList.h:52
getProperty
const char *PyHelper() getProperty(IInterface *p, char *name)
Definition: Bootstrap.cpp:258
std::string
STL class.
IProperty.h
Property
Property base class allowing Property* collections to be "homogeneous".
Definition: Property.h:38
std::vector< Property * >
Property.h
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:107