ATLAS Offline Software
VarHandleKeyArrayProperty.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef STOREGATE_VARHANDLEKEYARRAYPROPERTY
6 #define STOREGATE_VARHANDLEKEYARRAYPROPERTY 1
7 
18 #include "Gaudi/Property.h"
19 #include <iostream>
20 
21 namespace Gaudi {
22  namespace Parsers {
23  GAUDI_API
24  StatusCode parse(SG::VarHandleKeyArray& v, const std::string& s);
25  }
26 
27  namespace Utils {
28  GAUDI_API
29  std::ostream& toStream(const SG::VarHandleKeyArray& v, std::ostream& o);
30  }
31 }
32 
33 namespace SG {
34 
35  class GAUDI_API VarHandleKeyArrayProperty
36  : public ::PropertyWithHandlers <>
37  {
38  public:
39 
40  VarHandleKeyArrayProperty( const std::string& name,
42 
44 
45  VarHandleKeyArrayProperty* clone() const override;
46 
47  bool load( Gaudi::Details::PropertyBase& destination ) const override;
48 
49  bool assign( const Gaudi::Details::PropertyBase& source ) override;
50 
51  std::string toString() const override;
52 
53  void toStream(std::ostream& out) const override;
54 
55  StatusCode fromString(const std::string& s) override;
56 
57  const SG::VarHandleKeyArray& value() const;
58 
59  bool setValue( const SG::VarHandleKeyArray& value );
60 
61 
62  private:
67  };
68 
69 
70 } // namespace SG
71 
72 namespace Gaudi {
73 template<>
74  class Property<SG::VarHandleKeyArray&> : public SG::VarHandleKeyArrayProperty
75 {
76 public:
77  Property(const std::string& name, SG::VarHandleKeyArray& value) :
78  SG::VarHandleKeyArrayProperty(name, value) {}
79  virtual ~Property() {}
80 };
81 
82 template<typename T>
84 {
85 public:
86  Property(const std::string& name, SG::ReadHandleKeyArray<T>& value) :
87  SG::VarHandleKeyArrayProperty(name, value) {}
88  virtual ~Property() {}
89 };
90 
91 template<typename T>
93 {
94 public:
95  Property(const std::string& name, SG::WriteHandleKeyArray<T>& value) :
96  SG::VarHandleKeyArrayProperty(name, value) {}
97  virtual ~Property() {}
98 };
99 
100 }
101 
102 
103 
104 
105 #endif
ReadHandleKeyArray.h
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
Gaudi::Parsers::parse
StatusCode parse(std::tuple< Tup... > &tup, const Gaudi::Parsers::InputData &input)
Definition: CaloGPUClusterAndCellDataMonitorOptions.h:284
python.AthDsoLogger.out
out
Definition: AthDsoLogger.py:71
VarHandleKeyArray.h
Base class for VarHandleKeyArray for reading from StoreGate.
athena.value
value
Definition: athena.py:122
SG::HandleKeyArray
Definition: StoreGate/StoreGate/HandleKeyArray.h:38
Gaudi::Property< SG::VarHandleKeyArray & >::~Property
virtual ~Property()
Definition: VarHandleKeyArrayProperty.h:79
Property
Support class for PropertyMgr.
Definition: Property.h:23
python.Utilities.clone
clone
Definition: Utilities.py:134
Gaudi::Property< SG::WriteHandleKeyArray< T > & >::Property
Property(const std::string &name, SG::WriteHandleKeyArray< T > &value)
Definition: VarHandleKeyArrayProperty.h:95
Amg::toString
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
Definition: GeoPrimitivesToStringConverter.h:40
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
SG::ReadHandleKeyArray
HandleKeyArray< ReadHandle< T >, ReadHandleKey< T >, Gaudi::DataHandle::Reader > ReadHandleKeyArray
Definition: StoreGate/StoreGate/ReadHandleKeyArray.h:32
PixelConditionsData::fromString
T fromString(const std::string &s)
Definition: PixelConditionsDataStringUtils.h:14
SG::VarHandleKeyArrayProperty
Definition: VarHandleKeyArrayProperty.h:37
SG::VarHandleKeyArrayProperty::m_pValue
SG::VarHandleKeyArray * m_pValue
Pointer to the real property.
Definition: VarHandleKeyArrayProperty.h:66
WriteHandleKeyArray.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
Gaudi::Property< SG::WriteHandleKeyArray< T > & >::~Property
virtual ~Property()
Definition: VarHandleKeyArrayProperty.h:97
python.PyAthena.v
v
Definition: PyAthena.py:157
Gaudi::Utils::toStream
std::ostream &GAUDI_API toStream(const SG::VarHandleKeyArray &v, std::ostream &o)
Gaudi function used to convert a property to a string.
Definition: StoreGate/src/VarHandleKeyArray.cxx:49
ref
const boost::regex ref(r_ef)
Gaudi
=============================================================================
Definition: CaloGPUClusterAndCellDataMonitorOptions.h:273
Gaudi::Property< SG::ReadHandleKeyArray< T > & >::Property
Property(const std::string &name, SG::ReadHandleKeyArray< T > &value)
Definition: VarHandleKeyArrayProperty.h:86
python.root_pickle.load
def load(f, use_proxy=1, key=None)
Definition: root_pickle.py:476
Utils
Definition: CaloCellSelectorUtils.cxx:10
Gaudi::Property< SG::ReadHandleKeyArray< T > & >::~Property
virtual ~Property()
Definition: VarHandleKeyArrayProperty.h:88
Gaudi::Property< SG::VarHandleKeyArray & >::Property
Property(const std::string &name, SG::VarHandleKeyArray &value)
Definition: VarHandleKeyArrayProperty.h:77
SG::VarHandleKeyArray
Definition: StoreGate/StoreGate/VarHandleKeyArray.h:28
SG::WriteHandleKeyArray
HandleKeyArray< WriteHandle< T >, WriteHandleKey< T >, Gaudi::DataHandle::Writer > WriteHandleKeyArray
Definition: WriteHandleKeyArray.h:32