Single notify event observable. More...
#include <cvb/driver/notify_observable.hpp>
Public Member Functions | |
| int | ID () const noexcept |
| Get the native ID. | |
| String | Description () const noexcept |
| The string identifier of this event. | |
| bool | IsAvailable () const |
| Gets whether the current device can actually handle this event. | |
| EventCookie | RegisterEvent (std::function< void(NotifyArgs)> handler) |
| Register a listener to this observable. | |
| void | UnregisterEvent (EventCookie eventCookie) noexcept |
| Manually unregister a listener to this observable. | |
Single notify event observable.
|
inlinenoexcept |
The string identifier of this event.
| Does | not throw any exception. |
|
inlinenoexcept |
Get the native ID.
| Does | not throw any exception. |
|
inline |
Gets whether the current device can actually handle this event.
| Any | exception derived from std::exception including CvbException. |
|
inline |
Register a listener to this observable.
| [in] | handler | Listener, to this observable. |
| Any | exception derived from std::exception including CvbException. |
|
inlinenoexcept |
Manually unregister a listener to this observable.
| [in] | eventCookie | Event cookie, obtained from registering the listener. |
| Does | not throw any exception. |