| The Gaudi Framework v30r0 (c919700c)

- 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 "GaudiKernel/IProperty.h"
6 #include "Property.h"
7 #include <vector>
8
16 class GAUDI_API PropertyList : public Property
17 {
18 public:
20 PropertyList();
22 PropertyList( const std::string& name );
24 virtual ~PropertyList();
25
27 bool isRef() const { return false; }
28
30 void addProperty( const std::string& name, Property& p );
32 void addProperty( Property& p );
34 void removeProperty( const std::string& name );
36 void removeProperty( Property& p );
37
39 bool assign( const Property& p ) override;
41 bool load( Property& p ) const override;
42
44 bool assign( const std::string& name, const Property& p );
46 bool load( const std::string& name, Property& p ) const;
47
49 const Property& getProperty( const std::string& name ) const;
51 const std::vector<Property*>& getProperties() const;
52
53 private:
54 std::vector<Property*> m_propertyList;
55 };
56
57 #endif // GAUDIKERNEL_PROPERTYLIST_H
PropertyList::isRef
bool isRef() const
Accessor members (const)
Definition: PropertyList.h:27
gaudiComponentHelp.name
name
Definition: gaudiComponentHelp.py:32
PropertyList
List of properties.
Definition: PropertyList.h:16
PropertyList::m_propertyList
std::vector< Property * > m_propertyList
Definition: PropertyList.h:54
Property
Gaudi::Details::PropertyBase Property
backward compatibility hack for old Property base class
Definition: PropertyFwd.h:28
std::string
STL class.
IProperty.h
std::vector< Property * >
Property.h
getProperties
const std::vector< Gaudi::Details::PropertyBase * > & getProperties() const override
get all properties
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:110
Gaudi::Utils::getProperty
GAUDI_API Gaudi::Details::PropertyBase * getProperty(const IProperty *p, const std::string &name)
simple function which gets the property with given name from the component
Definition: Property.cpp:223