The Gaudi Framework  v37r0 (b608885e)
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
inline

Definition at line 196 of file Property.h.

196 { return m_readCallBack; }

◆ getUpdateHandler()

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

Definition at line 210 of file Property.h.

210 { return m_updateCallBack; }

◆ setReadHandler()

void Gaudi::Details::Property::ReadHandler::setReadHandler
inline

Definition at line 195 of file Property.h.

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

◆ setUpdateHandler()

void Gaudi::Details::Property::UpdateHandler::setUpdateHandler
inline

Definition at line 209 of file Property.h.

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

◆ useReadHandler()

void Gaudi::Details::Property::ReadHandler::useReadHandler
inline

Definition at line 192 of file Property.h.

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

◆ useUpdateHandler()

void Gaudi::Details::Property::UpdateHandler::useUpdateHandler
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  }

The documentation for this struct was generated from the following file:
std::exception
STL class.
std::move
T move(T... args)
Gaudi::Details::Property::UpdateHandler::m_updateCallBack
std::function< void(PropertyBase &)> m_updateCallBack
Definition: Property.h:199
std::invalid_argument
STL class.
Gaudi::Details::Property::ReadHandler::m_readCallBack
std::function< void(PropertyBase &)> m_readCallBack
Definition: Property.h:191
std::exception::what
T what(T... args)