DataObjectHandleProperty.h
Go to the documentation of this file.
1 #ifndef GAUDIKERNEL_DATAOBJECTHANDLEPROPERTY_H
2 #define GAUDIKERNEL_DATAOBJECTHANDLEPROPERTY_H 1
3 
5 #include "GaudiKernel/Property.h"
6 
7 #include <iostream>
8 
10 
11 //---------------------------------------------------------------------------
12 
21 //---------------------------------------------------------------------------
22 
24  public:
25 
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:
46 };
47 
48 template<>
51 {
52 public:
54  ::DataObjectHandleProperty(name, value)
55  {}
56 
58  virtual ~SimplePropertyRef() {}
59 };
60 
61 
62 #endif
SimplePropertyRef(const std::string &name, DataObjectHandleBase &value)
virtual bool assign(const Property &source)=0
import the property value form the source
virtual std::string toString() const =0
value -> string
DataObjectHandleBase * m_pValue
Pointer to the real property.
SimplePropertyRef templated class.
Definition: HistoProperty.h:14
const std::string & name() const
property name
Definition: Property.h:45
virtual bool load(Property &dest) const =0
export the property value to the destination
DataObjectHandleProperty.h GaudiKernel/DataObjectHandleProperty.h.
STL class.
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
const TYPE & value() const
explicit conversion
Definition: Property.h:341
Property & operator=(const Property &)=default
assignment operator
Property base class allowing Property* collections to be "homogeneous".
Definition: Property.h:38
DataObjectHandleBase GaudiKernel/DataObjectHandleBase.h.
string s
Definition: gaudirun.py:245
#define GAUDI_API
Definition: Kernel.h:107
virtual Property * clone() const =0
clone: "virtual constructor"
STL class.
virtual void toStream(std::ostream &out) const =0
value -> stream
virtual StatusCode fromString(const std::string &value)=0
string -> value