All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
PropertyList.h
Go to the documentation of this file.
1 // $Header: /tmp/svngaudi/tmp.jEpFh25751/Gaudi/GaudiKernel/GaudiKernel/PropertyList.h,v 1.2 2000/12/13 12:57:20 mato Exp $
2 #ifndef GAUDIKERNEL_PROPERTYLIST_H
3 #define GAUDIKERNEL_PROPERTYLIST_H
4 
5 // Include Files
6 #include "Property.h"
8 #include <vector>
9 
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 );
41  bool load( Property& p) const;
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 private:
53  std::vector<Property*> m_propertyList;
54 };
55 
56 #endif // GAUDIKERNEL_PROPERTYLIST_H
57 
bool isRef() const
Accessor members (const)
Definition: PropertyList.h:27
virtual bool assign(const Property &source)=0
import the property value form the source
List of properties.
Definition: PropertyList.h:17
virtual bool load(Property &dest) const =0
export the property value to the destination
std::vector< Property * > m_propertyList
Definition: PropertyList.h:53
GAUDI_API Property * getProperty(const IProperty *p, const std::string &name)
simple function which gets the property with given name from the component
Definition: Property.cpp:349
Property base class allowing Property* collections to be "homogeneous".
Definition: Property.h:43
#define GAUDI_API
Definition: Kernel.h:108