Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
|
Stream of SR_systemEvent objects. More...
#include <systemeventstream.h>
Public Types | |
using | Frame = SystemEvent |
Used in OutputStreams template. More... | |
Public Member Functions | |
SystemEventStream (SystemSense *sense, SystemEventListener *listener) | |
Construct a new SystemEventStream. More... | |
~SystemEventStream () | |
void | stopListening () |
Stop listening and notify sense to stop sending new frames. (Called by listener) More... | |
void | close () |
Close the stream. (Called by sense) More... | |
void | update (SystemEvent frame) |
Send new frame to listener. More... | |
Stream of SR_systemEvent objects.
Connects a SystemSense to a SystemEventListener object.
Used in OutputStreams template.
SR::SystemEventStream::SystemEventStream | ( | SystemSense * | sense, |
SystemEventListener * | listener | ||
) |
Construct a new SystemEventStream.
sense | refers to the SystemSense providing updates |
listener | refers to the SystemEventListener receiving updates |
Called by the SystemSense when requested for an SystemEventListener through an openSystemEventStream call.
SR::SystemEventStream::~SystemEventStream | ( | ) |
void SR::SystemEventStream::close | ( | ) |
Close the stream. (Called by sense)
void SR::SystemEventStream::stopListening | ( | ) |
Stop listening and notify sense to stop sending new frames. (Called by listener)
void SR::SystemEventStream::update | ( | SystemEvent | frame | ) |
Send new frame to listener.
frame | represents a single update |