| The Gaudi Framework v32r1 (f65d50dc)

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"
5 #include "GaudiKernel/StatusCode.h"
6
7 #include <iostream>
8
9 class DataObjectHandleBase;
10
11 //---------------------------------------------------------------------------
12
21 //---------------------------------------------------------------------------
22
23 class GAUDI_API DataObjectHandleProperty : public PropertyWithHandlers<> {
24 public:
25 DataObjectHandleProperty( const std::string& name, DataObjectHandleBase& ref );
26 DataObjectHandleProperty& operator=( const DataObjectHandleBase& value );
27
28 DataObjectHandleProperty* clone() const override;
29 bool load( Property& destination ) const override;
30 bool assign( const Property& source ) override;
31 std::string toString() const override;
32 void toStream( std::ostream& out ) const override;
33 StatusCode fromString( const std::string& s ) override;
34 const DataObjectHandleBase& value() const;
35 bool setValue( const DataObjectHandleBase& value );
36
37 private:
41 DataObjectHandleBase* m_pValue;
42 };
43
44 #endif
gaudiComponentHelp.name
name
Definition: gaudiComponentHelp.py:41
Gaudi::Details::PropertyBase::load
virtual bool load(PropertyBase &dest) const =0
export the property value to the destination
DataObjectHandleProperty::m_pValue
DataObjectHandleBase * m_pValue
Pointer to the real property.
Definition: DataObjectHandleProperty.h:41
Gaudi::Details::PropertyBase::assign
virtual bool assign(const PropertyBase &source)=0
import the property value form the source
Gaudi::Details::PropertyBase::toStream
virtual void toStream(std::ostream &out) const =0
value -> stream
Property
Gaudi::Details::PropertyBase Property
\fixme backward compatibility hack for old Property base class
Definition: PropertyFwd.h:25
Gaudi::Details::PropertyBase::fromString
virtual StatusCode fromString(const std::string &value)=0
string -> value
DataObjectHandleProperty
DataObjectHandleProperty.h GaudiKernel/DataObjectHandleProperty.h.
Definition: DataObjectHandleProperty.h:23
PropertyWithHandlers
Helper class to simplify the migration old properties deriving directly from PropertyBase.
Definition: Property.h:806
std::string
STL class.
compareRootHistos.ref
string ref
Definition: compareRootHistos.py:14
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
DataObjectHandleBase
DataObjectHandleBase GaudiKernel/DataObjectHandleBase.h.
Definition: DataObjectHandleBase.h:26
Property.h
gaudirun.s
string s
Definition: gaudirun.py:316
Gaudi::Details::PropertyBase::clone
virtual PropertyBase * clone() const =0
clones the current property
StatusCode.h
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:71
std::ostream
STL class.
Gaudi::Details::PropertyBase::toString
virtual std::string toString() const =0
value -> string
Gaudi::Details::PropertyBase::operator=
PropertyBase & operator=(const PropertyBase &)=default
assignment operator