Max OS 0.3
Loading...
Searching...
No Matches
MaxOS::common::Event< EventType > Class Template Reference

Used to store information about an event, has a type and a return value. More...

#include <eventHandler.h>

Public Member Functions

 Event (EventType type)
 Constructs a new Event object.
 

Public Attributes

EventType type
 
union { 
 
   uint8_t *   buffer_value 
 
   uint32_t   int_value 
 
   bool   bool_value 
 
return_value 
 

Detailed Description

template<typename EventType>
class MaxOS::common::Event< EventType >

Used to store information about an event, has a type and a return value.

Template Parameters
EventTypeThe type of event
Todo:

deprecate, things that should fire events should have their own event firer class and things that connect to it, dont have a class per event

events should be made on stack and passed as references not pointers for better perf

Deprecated:
Will Remove Soon

Definition at line 31 of file eventHandler.h.

Constructor & Destructor Documentation

◆ Event()

template<typename EventType >
MaxOS::common::Event< EventType >::Event ( EventType  type)
explicit

Constructs a new Event object.

Todo:
move to a c++ files
Template Parameters
EventTypeThe type of event
Parameters
typeThe type of the event

Definition at line 86 of file eventHandler.h.

86 {
87 this->type = type;
88 }

Member Data Documentation

◆ bool_value

Deprecated:
WRS

Definition at line 41 of file eventHandler.h.

◆ buffer_value

Deprecated:
WRS

Definition at line 39 of file eventHandler.h.

◆ int_value

Deprecated:
WRS

Definition at line 40 of file eventHandler.h.

◆ [union]

union { ... } MaxOS::common::Event< EventType >::return_value

◆ type

Deprecated:
WRS

Definition at line 36 of file eventHandler.h.


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