The Gaudi Framework  v29r0 (ff2e7097)
DataObjectHandleProperty.h
Go to the documentation of this file.
1 #ifndef GAUDIKERNEL_DATAOBJECTHANDLEPROPERTY_H
2 #define GAUDIKERNEL_DATAOBJECTHANDLEPROPERTY_H 1
3 
4 #include "GaudiKernel/Property.h"
6 
7 #include <iostream>
8 
10 
11 //---------------------------------------------------------------------------
12 
21 //---------------------------------------------------------------------------
22 
24 {
25 public:
28 
29  DataObjectHandleProperty* clone() const override;
30  bool load( Property& destination ) const override;
31  bool assign( const Property& source ) override;
32  std::string toString() const override;
33  void toStream( std::ostream& out ) const override;
34  StatusCode fromString( const std::string& s ) override;
35  const DataObjectHandleBase& value() const;
36  bool setValue( const DataObjectHandleBase& value );
37 
38  std::string pythonRepr() const;
39 
40 private:
45 };
46 
47 namespace Gaudi
48 {
49  template <>
50  class Property<DataObjectHandleBase&> : public ::DataObjectHandleProperty
51  {
52  public:
53  Property( const std::string& name, DataObjectHandleBase& value ) : ::DataObjectHandleProperty( name, value ) {}
54  };
55 }
56 
57 #endif
Implementation of property with value of concrete type.
Definition: Property.h:319
virtual bool load(PropertyBase &dest) const =0
export the property value to the destination
DataObjectHandleBase * m_pValue
Pointer to the real property.
virtual bool assign(const PropertyBase &source)=0
import the property value form the source
virtual std::string toString() const =0
value -> string
Gaudi::Details::PropertyBase Property
backward compatibility hack for old Property base class
Definition: PropertyFwd.h:28
virtual void toStream(std::ostream &out) const =0
value -> stream
virtual StatusCode fromString(const std::string &value)=0
string -> value
DataObjectHandleProperty.h GaudiKernel/DataObjectHandleProperty.h.
Helper class to simplify the migration old properties deriving directly from PropertyBase.
Definition: Property.h:786
STL class.
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:28
virtual PropertyBase * clone() const =0
clones the current property
DataObjectHandleBase GaudiKernel/DataObjectHandleBase.h.
string s
Definition: gaudirun.py:253
Property(const std::string &name, DataObjectHandleBase &value)
#define GAUDI_API
Definition: Kernel.h:110
STL class.
Helper functions to set/get the application return code.
Definition: __init__.py:1
PropertyBase & operator=(const PropertyBase &)=default
assignment operator