The Gaudi Framework  v33r1 (b1225454)
DataObjectHandleProperty.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 #ifndef GAUDIKERNEL_DATAOBJECTHANDLEPROPERTY_H
12 #define GAUDIKERNEL_DATAOBJECTHANDLEPROPERTY_H 1
13 
14 #include "GaudiKernel/Property.h"
15 #include "GaudiKernel/StatusCode.h"
16 
17 #include <iostream>
18 
20 
21 //---------------------------------------------------------------------------
22 
31 //---------------------------------------------------------------------------
32 
34 public:
37 
38  DataObjectHandleProperty* clone() const override;
39  bool load( Property& destination ) const override;
40  bool assign( const Property& source ) override;
41  std::string toString() const override;
42  void toStream( std::ostream& out ) const override;
43  StatusCode fromString( const std::string& s ) override;
44  const DataObjectHandleBase& value() const;
45  bool setValue( const DataObjectHandleBase& value );
46 
47 private:
52 };
53 
54 #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 void toStream(std::ostream &out) const =0
value -> stream
Gaudi::Details::PropertyBase Property
\fixme backward compatibility hack for old Property base class
Definition: PropertyFwd.h:35
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:834
STL class.
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:61
DataObjectHandleBase GaudiKernel/DataObjectHandleBase.h.
string s
Definition: gaudirun.py:328
virtual PropertyBase * clone() const =0
clones the current property
#define GAUDI_API
Definition: Kernel.h:81
STL class.
virtual std::string toString() const =0
value -> string
PropertyBase & operator=(const PropertyBase &)=default
assignment operator