| The Gaudi Framework v28r2-patches (bc4ad17a)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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 {
25 public:
26 DataObjectHandleProperty( const std::string& name, DataObjectHandleBase& ref );
27 DataObjectHandleProperty& operator=( const DataObjectHandleBase& value );
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:
44 DataObjectHandleBase* m_pValue;
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
gaudiComponentHelp.name
name
Definition: gaudiComponentHelp.py:28
Gaudi::Property
Implementation of property with value of concrete type.
Definition: Property.h:314
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:44
Gaudi::Details::PropertyBase::assign
virtual bool assign(const PropertyBase &source)=0
import the property value form the source
Gaudi::Details::PropertyBase::toString
virtual std::string toString() const =0
value -> string
Property
Gaudi::Details::PropertyBase Property
backward compatibility hack for old Property base class
Definition: PropertyFwd.h:28
Gaudi::Details::PropertyBase::toStream
virtual void toStream(std::ostream &out) const =0
value -> stream
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:751
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:26
Gaudi::Details::PropertyBase::clone
virtual PropertyBase * clone() const =0
clones the current property
DataObjectHandleBase
DataObjectHandleBase GaudiKernel/DataObjectHandleBase.h.
Definition: DataObjectHandleBase.h:24
Property.h
gaudirun.s
string s
Definition: gaudirun.py:245
StatusCode.h
Gaudi::Property< DataObjectHandleBase & >::Property
Property(const std::string &name, DataObjectHandleBase &value)
Definition: DataObjectHandleProperty.h:53
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:107
std::ostream
STL class.
Gaudi
Helper functions to set/get the application return code.
Definition: __init__.py:1
Gaudi::Details::PropertyBase::operator=
PropertyBase & operator=(const PropertyBase &)=default
assignment operator