| The Gaudi Framework v27r1

- 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/StatusCode.h"
5 #include "GaudiKernel/Property.h"
6
7 #include <iostream>
8
9 class DataObjectHandleBase;
10
11 //---------------------------------------------------------------------------
12
21 //---------------------------------------------------------------------------
22
23 class GAUDI_API DataObjectHandleProperty : public ::Property {
24 public:
25
26 DataObjectHandleProperty( const std::string& name, DataObjectHandleBase& ref );
27 DataObjectHandleProperty& operator=( const DataObjectHandleBase& value );
28 virtual ~DataObjectHandleProperty();
29
30 virtual DataObjectHandleProperty* clone() const;
31 virtual bool load( Property& destination ) const;
32 virtual bool assign( const Property& source );
33 virtual std::string toString() const;
34 virtual void toStream(std::ostream& out) const;
35 virtual StatusCode fromString(const std::string& s);
36 const DataObjectHandleBase& value() const;
37 bool setValue( const DataObjectHandleBase& value );
38
39 const std::string pythonRepr() const;
40
41 private:
45 DataObjectHandleBase* m_pValue;
46 };
47
48 template<>
49 class SimplePropertyRef< DataObjectHandleBase > :
50 public ::DataObjectHandleProperty
51 {
52 public:
53 SimplePropertyRef(const std::string& name, DataObjectHandleBase& value) :
54 ::DataObjectHandleProperty(name, value)
55 {}
56
58 virtual ~SimplePropertyRef() {}
59 };
60
61
62 #endif
SimplePropertyRef< DataObjectHandleBase >::SimplePropertyRef
SimplePropertyRef(const std::string &name, DataObjectHandleBase &value)
Definition: DataObjectHandleProperty.h:53
Property::assign
virtual bool assign(const Property &source)=0
import the property value form the source
gaudiComponentHelp.name
name
Definition: gaudiComponentHelp.py:28
Property::toString
virtual std::string toString() const =0
value -> string
DataObjectHandleProperty::m_pValue
DataObjectHandleBase * m_pValue
Pointer to the real property.
Definition: DataObjectHandleProperty.h:45
SimplePropertyRef
SimplePropertyRef templated class.
Definition: HistoProperty.h:14
Property::name
const std::string & name() const
property name
Definition: Property.h:45
Property::load
virtual bool load(Property &dest) const =0
export the property value to the destination
DataObjectHandleProperty
DataObjectHandleProperty.h GaudiKernel/DataObjectHandleProperty.h.
Definition: DataObjectHandleProperty.h:23
std::string
STL class.
compareRootHistos.ref
string ref
Definition: compareRootHistos.py:14
SimplePropertyRef< DataObjectHandleBase >::~SimplePropertyRef
virtual ~SimplePropertyRef()
virtual Destructor
Definition: DataObjectHandleProperty.h:58
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
dump_component_properties.value
list value
Definition: dump_component_properties.py:12
PropertyWithValue::value
const TYPE & value() const
explicit conversion
Definition: Property.h:341
Property::operator=
Property & operator=(const Property &)=default
assignment operator
Property
Property base class allowing Property* collections to be "homogeneous".
Definition: Property.h:38
DataObjectHandleBase
DataObjectHandleBase GaudiKernel/DataObjectHandleBase.h.
Definition: DataObjectHandleBase.h:24
Property.h
gaudirun.s
string s
Definition: gaudirun.py:245
StatusCode.h
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:107
Property::clone
virtual Property * clone() const =0
clone: "virtual constructor"
std::ostream
STL class.
Property::toStream
virtual void toStream(std::ostream &out) const =0
value -> stream
Property::fromString
virtual StatusCode fromString(const std::string &value)=0
string -> value