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

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

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

Public Member Functions

void useUpdateHandler (PropertyBase &p)
void setUpdateHandler (std::function< void(PropertyBase &)> fun)
std::function< void(PropertyBase &)> getUpdateHandler () 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 Attributes

std::function< void(PropertyBase &)> m_updateCallBack

Detailed Description

Definition at line 198 of file Property.h.

Member Function Documentation

◆ getUpdateHandler()

std::function< void(PropertyBase &)> Gaudi::Details::Property::UpdateHandler::getUpdateHandler ( ) const
inline

Definition at line 210 of file Property.h.

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

◆ 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 ); }

◆ useUpdateHandler()

void Gaudi::Details::Property::UpdateHandler::useUpdateHandler ( PropertyBase & p)
inline

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

Member Data Documentation

◆ m_updateCallBack

std::function<void( PropertyBase& )> Gaudi::Details::Property::UpdateHandler::m_updateCallBack

Definition at line 199 of file Property.h.


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