| The Gaudi Framework v30r0 (c919700c)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

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

## Member Function Documentation

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

Definition at line 294 of file Property.h.

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

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

Definition at line 293 of file Property.h.

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

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

Definition at line 283 of file Property.h.

284 {
285 if ( m_updateCallBack ) {
286 try {
287 SwapCall{m_updateCallBack}( p );
288 } catch ( const std::exception& x ) {
289 throw std::invalid_argument( "failure in update handler of '" + p.name() + "': " + x.what() );
290 }
291 }
292 }
Gaudi::Details::Property::UpdateHandler::m_updateCallBack
std::function< void(PropertyBase &)> m_updateCallBack
Definition: Property.h:282
std::exception::what
T what(T...args)
std::exception
STL class.
std::invalid_argument
STL class.

## Member Data Documentation

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

Definition at line 282 of file Property.h.

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

- GaudiKernel/GaudiKernel/Property.h