The Gaudi Framework  v36r1 (3e2fb5a8)
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:
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 );
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( std::string_view name ) const;
61 
62 private:
64 };
65 
66 #endif // GAUDIKERNEL_PROPERTYLIST_H
Gaudi::Details::PropertyBase
PropertyBase base class allowing PropertyBase* collections to be "homogeneous".
Definition: PropertyBase.h:35
PropertyList::assign
bool assign(const std::string &name, const Property &p)
Property implementation: set property.
std::string
STL class.
PropertyList::getProperties
const std::vector< Property * > & getProperties() const
Get the complete list of properties.
PropertyList::load
bool load(Property &p) const override
Property implementation: get property.
PropertyList::assign
bool assign(const Property &p) override
Property implementation: set property.
std::vector
STL class.
PropertyList::getProperty
const Property & getProperty(std::string_view name) const
Get the property with a given name.
PropertyList::addProperty
void addProperty(Property &p)
Add a property to the list.
PropertyList::removeProperty
void removeProperty(Property &p)
Remove a property from the list.
TimingHistograms.name
name
Definition: TimingHistograms.py:23
PropertyList::PropertyList
PropertyList(const std::string &name)
Constructor giving a name.
PropertyList::load
bool load(const std::string &name, Property &p) const
Property implementation: get property.
PropertyList::removeProperty
void removeProperty(const std::string &name)
Remove a property from the list.
Property.h
PropertyList::m_propertyList
std::vector< Property * > m_propertyList
Definition: PropertyList.h:63
PropertyList
Definition: PropertyList.h:26
PropertyList::~PropertyList
virtual ~PropertyList()
Virtual destructor.
PropertyList::PropertyList
PropertyList()
Constructor.
PropertyList::addProperty
void addProperty(const std::string &name, Property &p)
Add a property to the list.
IProperty.h
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:81
PropertyList::isRef
bool isRef() const
Accessor members (const)
Definition: PropertyList.h:36