Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
systemeventstream.h
Go to the documentation of this file.
1
10#pragma once
11
12#include "systemevent.h"
13#include "systemeventlistener.h"
14
15#include <memory>
16
17#ifdef WIN32
18# ifdef COMPILING_DLL_SimulatedRealityCore
19# define DIMENCOSR_API __declspec(dllexport)
20# else
21# define DIMENCOSR_API __declspec(dllimport)
22# endif
23#else
24# define DIMENCOSR_API
25#endif
26
27namespace SR {
28
29class SystemSense; //forward declaration
30
39 class Impl;
45#pragma warning(suppress: 4251)
46 std::unique_ptr<Impl> pimpl;
47
48public:
50
61
66
70 void close();
71
77 void update(SystemEvent frame);
78};
79
80}
81
82#undef DIMENCOSR_API
Interface for listening to SR_systemEvent updates.
Definition: systemeventlistener.h:30
Stream of SR_systemEvent objects.
Definition: systemeventstream.h:38
void stopListening()
Stop listening and notify sense to stop sending new frames. (Called by listener)
void update(SystemEvent frame)
Send new frame to listener.
void close()
Close the stream. (Called by sense)
SystemEventStream(SystemSense *sense, SystemEventListener *listener)
Construct a new SystemEventStream.
Class containing dynamic-length event messages.
Definition: systemevent.h:65
Sense class which shares information about the SR system throughout the SR system and to applications...
Definition: systemsense.h:41
Namespace containing all C++ Simulated Reality classes.
Definition: srconfiguration.h:25
#define DIMENCOSR_API
Definition: systemeventstream.h:24