OpenSourceSimWheelESP32
Open-source wireless steering wheel/button box for ESP32 boards
Loading...
Searching...
No Matches
InternalEvent< eventType, void > Struct Template Reference

Subscribable events requiring void handlers. More...

#include <InternalTypes.hpp>

Public Types

typedef void(*) Callback()
 Callback prototype.
 

Static Public Member Functions

static void subscribe (Callback callback)
 Subscribe to this event.
 
static void notify ()
 Invoke all subscribed callbacks.
 
static void clearSubscriptions ()
 Clear subscriptions (for testing)
 

Detailed Description

template<InternalEventType eventType>
struct InternalEvent< eventType, void >

Subscribable events requiring void handlers.

Template Parameters
eventTypeEvent type

Definition at line 628 of file InternalTypes.hpp.

Member Typedef Documentation

◆ Callback

template<InternalEventType eventType>
void(*) InternalEvent< eventType, void >::Callback()

Callback prototype.

Definition at line 631 of file InternalTypes.hpp.

Member Function Documentation

◆ clearSubscriptions()

template<InternalEventType eventType>
static void InternalEvent< eventType, void >::clearSubscriptions ( )
inlinestatic

Clear subscriptions (for testing)

Definition at line 658 of file InternalTypes.hpp.

◆ notify()

template<InternalEventType eventType>
static void InternalEvent< eventType, void >::notify ( )
inlinestatic

Invoke all subscribed callbacks.

Definition at line 648 of file InternalTypes.hpp.

◆ subscribe()

template<InternalEventType eventType>
static void InternalEvent< eventType, void >::subscribe ( Callback callback)
inlinestatic

Subscribe to this event.

Parameters
callbackEvent callback

Definition at line 638 of file InternalTypes.hpp.


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