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

Used to handle an event. More...

#include <eventHandler.h>

Public Member Functions

virtual Event< EventType > * on_event (Event< EventType > *event)
 This function is called when an event is raised.
 

Detailed Description

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

Used to handle an event.

Template Parameters
EventTypeThe type of event

Definition at line 51 of file eventHandler.h.

Member Function Documentation

◆ on_event()

template<typename EventType >
Event< EventType > * MaxOS::common::EventHandler< EventType >::on_event ( Event< EventType > *  event)
virtual

This function is called when an event is raised.

Template Parameters
EventTypeThe type of event
Parameters
eventThe event that was raised
Returns
The event after it has been handled

Definition at line 106 of file eventHandler.h.

106 {
107 return event;
108 }

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