|
engine-mk1
|
Handles receiving and sending Events to and from EventStreams. More...
#include <EventStream.hpp>
Public Member Functions | |
| EventStream () noexcept | |
| Default constructor. More... | |
| void | pushEvent (Event event, StreamType streamType) |
| Pushes an Event onto this EventStream. More... | |
| void | pushEvents (const std::vector< Event > &events, StreamType streamType) |
| Pushes a vector of Events onto this EventStream. More... | |
| Event | popEvent (StreamType streamType) |
| Pops an Event from this EventStream. More... | |
| std::vector< Event > | popEvents (StreamType streamType) |
| Pops a std::vector of Events from this EventStream. More... | |
| void | registerHandler (EventType type, EventHandler handler) |
| Register an EventHandler to the passed EventType. More... | |
| void | extendHandler (EventType type, EventHandler extensionHandler) |
| Extend the EventHandler of the passed EventType by calling. More... | |
| void | processEvents () |
| Processes all incoming Events with their respective handlers. More... | |
Handles receiving and sending Events to and from EventStreams.
|
noexcept |
Default constructor.
| void EventStream::extendHandler | ( | EventType | type, |
| EventHandler | extensionHandler | ||
| ) |
Extend the EventHandler of the passed EventType by calling.
| Event EventStream::popEvent | ( | StreamType | streamType | ) |
Pops an Event from this EventStream.
| std::vector< Event > EventStream::popEvents | ( | StreamType | streamType | ) |
Pops a std::vector of Events from this EventStream.
| void EventStream::processEvents | ( | ) |
Processes all incoming Events with their respective handlers.
| void EventStream::pushEvent | ( | Event | event, |
| StreamType | streamType | ||
| ) |
Pushes an Event onto this EventStream.
| void EventStream::pushEvents | ( | const std::vector< Event > & | events, |
| StreamType | streamType | ||
| ) |
Pushes a vector of Events onto this EventStream.
| void EventStream::registerHandler | ( | EventType | type, |
| EventHandler | handler | ||
| ) |
Register an EventHandler to the passed EventType.
1.8.11