The Gaudi Framework  v33r0 (d5ea422b)
PropertyList.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 #ifndef GAUDIKERNEL_PROPERTYLIST_H
12 #define GAUDIKERNEL_PROPERTYLIST_H
13 
14 // Include Files
15 #include "GaudiKernel/IProperty.h"
16 #include "Property.h"
17 #include <vector>
18 
27 public:
29  PropertyList();
31  PropertyList( const std::string& name );
33  virtual ~PropertyList();
34 
36  bool isRef() const { return false; }
37 
39  void addProperty( const std::string& name, Property& p );
41  void addProperty( Property& p );
43  void removeProperty( const std::string& name );
45  void removeProperty( Property& p );
46 
48  bool assign( const Property& p ) override;
50  bool load( Property& p ) const override;
51 
53  bool assign( const std::string& name, const Property& p );
55  bool load( const std::string& name, Property& p ) const;
56 
58  const Property& getProperty( const std::string& name ) const;
60  const std::vector<Property*>& getProperties() const;
61 
62 private:
64 };
65 
66 #endif // GAUDIKERNEL_PROPERTYLIST_H
List of properties.
Definition: PropertyList.h:26
std::vector< Property * > m_propertyList
Definition: PropertyList.h:63
const char *PyHelper() getProperty(IInterface *p, char *name)
Definition: Bootstrap.cpp:247
Gaudi::Details::PropertyBase Property
\fixme backward compatibility hack for old Property base class
Definition: PropertyFwd.h:35
STL class.
bool isRef() const
Accessor members (const)
Definition: PropertyList.h:36
#define GAUDI_API
Definition: Kernel.h:81