The Gaudi Framework  v30r3 (a5ef0a68)
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 private:
43 };
44 
45 #endif
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:856
STL class.
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:51
virtual PropertyBase * clone() const =0
clones the current property
DataObjectHandleBase GaudiKernel/DataObjectHandleBase.h.
string s
Definition: gaudirun.py:253
#define GAUDI_API
Definition: Kernel.h:104
STL class.
PropertyBase & operator=(const PropertyBase &)=default
assignment operator