CVB++ 15.0
NotifyArgs Class Reference

Event argument for notification events. More...

#include <cvb/driver/notify_observable.hpp>

Public Member Functions

void * Data () const noexcept
 The raw data of the event. More...
 
int Size () const noexcept
 Size of the data delivered with the event. More...
 
NotifyDataType DataType () const noexcept
 The data type of the data delivered with the event. More...
 
template<typename T >
Data () const noexcept
 The typed data of the event. More...
 

Detailed Description

Event argument for notification events.

Member Function Documentation

◆ Data() [1/2]

void * Data ( ) const
inlinenoexcept

The raw data of the event.

Returns
void* Raw pointer.
Exceptions
Doesnot throw any exception.

◆ Data() [2/2]

T Data ( ) const
inlinenoexcept

The typed data of the event.

Returns
T Typed copy of the data delivered with the event.
Exceptions
Doesnot throw any exception.

◆ DataType()

NotifyDataType DataType ( ) const
inlinenoexcept

The data type of the data delivered with the event.

Returns
The data type.
Exceptions
Doesnot throw any exception.

◆ Size()

int Size ( ) const
inlinenoexcept

Size of the data delivered with the event.

Returns
Size in bytes.
Exceptions
Doesnot throw any exception.