Falcon
Public Member Functions | Protected Attributes | List of all members
EventSystem Class Referenceabstract

#include <EventSystem.h>

Inheritance diagram for EventSystem:
CameraEventSystem ParticleEventSystem RenderEventSystem

Public Member Functions

virtual void SubscribeToEvents ()=0
 
virtual void ProcessEvents ()=0
 
void ReceiveEvent (boost::shared_ptr< Event > t)
 
 EventSystem ()
 

Protected Attributes

boost::circular_buffer< boost::shared_ptr< Event > > eventQueue
 
boost::container::vector< EventsCategorysubscribedList
 
ThreadPoolm_threadPool
 

Detailed Description

Basic EventSystem Definition

Constructor & Destructor Documentation

◆ EventSystem()

EventSystem::EventSystem ( )

Recieves an event and pushes it to the queue

Parameters
(std::shared_ptr<T>)t - The event to push to the queue

Member Function Documentation

◆ ProcessEvents()

virtual void EventSystem::ProcessEvents ( )
pure virtual

◆ ReceiveEvent()

void EventSystem::ReceiveEvent ( boost::shared_ptr< Event t)

◆ SubscribeToEvents()

virtual void EventSystem::SubscribeToEvents ( )
pure virtual

Virtual function that processes an event. Child classes will inherit and figure out how they want to process events

Implemented in RenderEventSystem, and ParticleEventSystem.

Member Data Documentation

◆ eventQueue

boost::circular_buffer<boost::shared_ptr<Event> > EventSystem::eventQueue
protected

◆ m_threadPool

ThreadPool* EventSystem::m_threadPool
protected

◆ subscribedList

boost::container::vector<EventsCategory> EventSystem::subscribedList
protected

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