| The Gaudi Framework v32r1 (f65d50dc)

Public Member Functions | Public Attributes | List of all members
Gaudi::Details::Property::UpdateHandler Struct Reference

`#include <GaudiKernel/Property.h>`

Inheritance diagram for Gaudi::Details::Property::UpdateHandler:
[legend]
Collaboration diagram for Gaudi::Details::Property::UpdateHandler:
[legend]

## 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 315 of file Property.h.

## Member Function Documentation

## ◆ getUpdateHandler()

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

Definition at line 327 of file Property.h.

327 { return m_updateCallBack; }
Gaudi::Details::Property::UpdateHandler::m_updateCallBack
std::function< void(PropertyBase &)> m_updateCallBack
Definition: Property.h:316

## ◆ setUpdateHandler()

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

Definition at line 326 of file Property.h.

326 { m_updateCallBack = std::move( fun ); }
Gaudi::Details::Property::UpdateHandler::m_updateCallBack
std::function< void(PropertyBase &)> m_updateCallBack
Definition: Property.h:316
std::move
T move(T... args)

## ◆ useUpdateHandler()

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

Definition at line 317 of file Property.h.

317 {
318 if ( m_updateCallBack ) {
319 try {
320 SwapCall{m_updateCallBack}( p );
321 } catch ( const std::exception& x ) {
322 throw std::invalid_argument( "failure in update handler of '" + p.name() + "': " + x.what() );
323 }
324 }
325 }
Gaudi::Details::Property::UpdateHandler::m_updateCallBack
std::function< void(PropertyBase &)> m_updateCallBack
Definition: Property.h:316
std::exception::what
T what(T... args)
std::exception
STL class.
std::invalid_argument
STL class.

## Member Data Documentation

## ◆ m_updateCallBack

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

Definition at line 316 of file Property.h.

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

- GaudiKernel/GaudiKernel/Property.h