LeiaSR SDK 720218b2 v1.32.7.6322 2025-02-13T14:55:38Z
Stable
systemeventstream.h
Go to the documentation of this file.
1
5#pragma once
6
7#include "systemevent.h"
9
10#include <memory>
11
12#ifdef WIN32
13# ifdef COMPILING_DLL_SimulatedRealityCore
14# define DIMENCOSR_API __declspec(dllexport)
15# else
16# define DIMENCOSR_API __declspec(dllimport)
17# endif
18#else
19# define DIMENCOSR_API
20#endif
21
22namespace SR {
23
24class SystemSense; //forward declaration
25
34 class Impl;
40#pragma warning(suppress: 4251)
41 std::unique_ptr<Impl> pimpl;
42
43public:
45
56
61
65 void close();
66
72 void update(SystemEvent frame);
73};
74
75}
76
77#undef DIMENCOSR_API
Interface for listening to SR_systemEvent updates.
Definition: systemeventlistener.h:25
Stream of SR_systemEvent objects.
Definition: systemeventstream.h:33
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:60
Sense class which shares information about the SR system throughout the SR system and to applications...
Definition: systemsense.h:36
Namespace containing all C++ Simulated Reality classes.
Definition: srconfiguration.h:20
#define DIMENCOSR_API
Definition: systemeventstream.h:19