The Gaudi Framework  v41r0 (bdbe7744)
Loading...
Searching...
No Matches
Gaudi::Details::Property::ReadUpdateHandler Struct Reference

#include </builds/gaudi/Gaudi/GaudiKernel/include/Gaudi/Details/Property.h>

Inheritance diagram for Gaudi::Details::Property::ReadUpdateHandler:
Collaboration diagram for Gaudi::Details::Property::ReadUpdateHandler:

Public Member Functions

std::function< void(PropertyBase &)> getReadHandler () const
void setReadHandler (std::function< void(PropertyBase &)> fun)
void useReadHandler (const PropertyBase &p) const
std::function< void(PropertyBase &)> getUpdateHandler () const
void setUpdateHandler (std::function< void(PropertyBase &)> fun)
void useUpdateHandler (PropertyBase &p)
Public Member Functions inherited from Gaudi::Details::Property::ReadHandler
void useReadHandler (const PropertyBase &p) const
void setReadHandler (std::function< void(PropertyBase &)> fun)
std::function< void(PropertyBase &)> getReadHandler () const
Public Member Functions inherited from Gaudi::Details::Property::NoHandler
void useReadHandler (const PropertyBase &) const
void setReadHandler (std::function< void(PropertyBase &)>)
std::function< void(PropertyBase &)> getReadHandler () const
void useUpdateHandler (const PropertyBase &) const
void setUpdateHandler (std::function< void(PropertyBase &)>)
std::function< void(PropertyBase &)> getUpdateHandler () const
Public Member Functions inherited from Gaudi::Details::Property::UpdateHandler
void useUpdateHandler (PropertyBase &p)
void setUpdateHandler (std::function< void(PropertyBase &)> fun)
std::function< void(PropertyBase &)> getUpdateHandler () const

Additional Inherited Members

Public Attributes inherited from Gaudi::Details::Property::ReadHandler
std::function< void(PropertyBase &)> m_readCallBack
Public Attributes inherited from Gaudi::Details::Property::UpdateHandler
std::function< void(PropertyBase &)> m_updateCallBack

Detailed Description

Definition at line 212 of file Property.h.

Member Function Documentation

◆ getReadHandler()

std::function< void(PropertyBase &)> Gaudi::Details::Property::ReadHandler::getReadHandler ( ) const
inline

Definition at line 196 of file Property.h.

196{ return m_readCallBack; }
std::function< void(PropertyBase &)> m_readCallBack
Definition Property.h:191

◆ getUpdateHandler()

Definition at line 210 of file Property.h.

210{ return m_updateCallBack; }
std::function< void(PropertyBase &)> m_updateCallBack
Definition Property.h:199

◆ setReadHandler()

void Gaudi::Details::Property::ReadHandler::setReadHandler ( std::function< void(PropertyBase &)> fun)
inline

Definition at line 195 of file Property.h.

195{ m_readCallBack = std::move( fun ); }

◆ setUpdateHandler()

void Gaudi::Details::Property::UpdateHandler::setUpdateHandler ( std::function< void(PropertyBase &)> fun)
inline

Definition at line 209 of file Property.h.

209{ m_updateCallBack = std::move( fun ); }

◆ useReadHandler()

Definition at line 192 of file Property.h.

192 {
193 if ( m_readCallBack ) { SwapCall{ m_readCallBack }( const_cast<PropertyBase&>( p ) ); }
194 }

◆ useUpdateHandler()

Definition at line 200 of file Property.h.

200 {
201 if ( m_updateCallBack ) {
202 try {
203 SwapCall{ m_updateCallBack }( p );
204 } catch ( const std::exception& x ) {
205 throw std::invalid_argument( "failure in update handler of '" + p.name() + "': " + x.what() );
206 }
207 }
208 }
const std::string name() const
property name

The documentation for this struct was generated from the following file: