Skip to content
Snippets Groups Projects
Commit 691af743 authored by Benedikt Hegner's avatar Benedikt Hegner
Browse files

Make the Handler configuration of Property policy driven

Closes GAUDI-1276

See merge request !267
parents 6d7927bc 0d880f2b
No related branches found
No related tags found
1 merge request!267Make the Handler configuration of Property policy driven
Pipeline #
......@@ -23,7 +23,7 @@
//---------------------------------------------------------------------------
class GAUDI_API DataObjIDProperty : public PropertyWithHandlers
class GAUDI_API DataObjIDProperty : public PropertyWithHandlers<>
{
public:
DataObjIDProperty( const std::string& name, DataObjID& ref );
......@@ -85,7 +85,7 @@ inline const DataObjID& DataObjIDProperty::value() const
//---------------------------------------------------------------------------
class GAUDI_API DataObjIDCollProperty : public PropertyWithHandlers
class GAUDI_API DataObjIDCollProperty : public PropertyWithHandlers<>
{
public:
DataObjIDCollProperty( const std::string& name, DataObjIDColl& ref );
......
......@@ -20,7 +20,7 @@ class DataObjectHandleBase;
//---------------------------------------------------------------------------
class GAUDI_API DataObjectHandleProperty : public PropertyWithHandlers
class GAUDI_API DataObjectHandleProperty : public PropertyWithHandlers<>
{
public:
DataObjectHandleProperty( const std::string& name, DataObjectHandleBase& ref );
......
......@@ -747,9 +747,10 @@ typedef Gaudi::Property<std::vector<std::string>&> StringArrayPropertyRef;
/// Helper class to simplify the migration old properties deriving directly from
/// PropertyBase.
template <typename Handler = typename Gaudi::Details::Property::UpdateHandler>
class PropertyWithHandlers : public Gaudi::Details::PropertyBase
{
Gaudi::Details::Property::ReadUpdateHandler m_handlers;
Handler m_handlers;
public:
using PropertyBase::PropertyBase;
......@@ -790,7 +791,7 @@ class GaudiHandleBase;
// definition is not needed. The rest goes into the .cpp file.
// The goal is to decouple the header files, to avoid that the whole
// world depends on GaudiHandle.h
class GAUDI_API GaudiHandleProperty : public PropertyWithHandlers
class GAUDI_API GaudiHandleProperty : public PropertyWithHandlers<>
{
public:
GaudiHandleProperty( std::string name, GaudiHandleBase& ref );
......@@ -830,7 +831,7 @@ private:
// forward-declaration is sufficient here
class GaudiHandleArrayBase;
class GAUDI_API GaudiHandleArrayProperty : public PropertyWithHandlers
class GAUDI_API GaudiHandleArrayProperty : public PropertyWithHandlers<>
{
public:
GaudiHandleArrayProperty( std::string name, GaudiHandleArrayBase& ref );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment