The Gaudi Framework  master (37c0b60a)
DataHandleProperty.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2024 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 #pragma once
12 
13 #include <Gaudi/Property.h>
14 #include <GaudiKernel/StatusCode.h>
15 
16 #include <iostream>
17 
18 namespace Gaudi {
19  class DataHandle;
20 }
21 
22 //---------------------------------------------------------------------------
23 
32 //---------------------------------------------------------------------------
33 
35 public:
38 
39  DataHandleProperty* clone() const override;
40  bool load( Gaudi::Details::PropertyBase& destination ) const override;
41  bool assign( const Gaudi::Details::PropertyBase& source ) override;
42  std::string toString() const override;
43  void toStream( std::ostream& out ) const override;
44  StatusCode fromString( const std::string& s ) override;
45  const Gaudi::DataHandle& value() const;
46  bool setValue( const Gaudi::DataHandle& value );
47 
48 protected:
52  Gaudi::DataHandle* m_pValue = nullptr;
53 };
Gaudi::Details::PropertyBase
PropertyBase base class allowing PropertyBase* collections to be "homogeneous".
Definition: PropertyBase.h:35
Gaudi::Details::PropertyBase::load
virtual bool load(PropertyBase &dest) const =0
export the property value to the destination
std::string
STL class.
Gaudi::Details::PropertyBase::operator=
PropertyBase & operator=(const PropertyBase &)=default
assignment operator
gaudirun.s
string s
Definition: gaudirun.py:346
DataHandleProperty
DataHandleProperty.h GaudiKernel/DataHandleProperty.h.
Definition: DataHandleProperty.h:34
Gaudi::DataHandle
Definition: DataHandle.h:38
Gaudi::Details::PropertyBase::toStream
virtual void toStream(std::ostream &out) const =0
value -> stream
StatusCode.h
Gaudi::Details::PropertyBase::fromString
virtual StatusCode fromString(const std::string &value)=0
string -> value
StatusCode
Definition: StatusCode.h:65
std::ostream
STL class.
Gaudi::Details::PropertyBase::assign
virtual bool assign(const PropertyBase &source)=0
import the property value form the source
Gaudi
This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from p...
Definition: __init__.py:1
PropertyWithHandlers
Helper class to simplify the migration old properties deriving directly from PropertyBase.
Definition: Property.h:539
ConditionsStallTest.name
name
Definition: ConditionsStallTest.py:77
Gaudi::Details::PropertyBase::toString
virtual std::string toString() const =0
value -> string
compareRootHistos.ref
ref
Definition: compareRootHistos.py:27
Gaudi::Details::PropertyBase::clone
virtual PropertyBase * clone() const =0
clones the current property
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:81
Property.h
PrepareBase.out
out
Definition: PrepareBase.py:20