Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
systemsense.h
Go to the documentation of this file.
1
10#pragma once
11#include <map>
12#include <thread>
13#include <mutex>
14#include "systemevent.h"
15#include "systemeventstream.h"
16#include "systemeventlistener.h"
18
19#ifdef WIN32
20# ifdef COMPILING_DLL_SimulatedRealityCore
21# define DIMENCOSR_API __declspec(dllexport)
22# else
23# define DIMENCOSR_API __declspec(dllimport)
24# endif
25#else
26# define DIMENCOSR_API
27#endif
28
29namespace SR {
30
42
43public:
50 static SystemSense* create(SRContext &context);
51
58 virtual std::shared_ptr<SystemEventStream> openSystemEventStream(SystemEventListener* listener) = 0;
59
65 virtual void streamClosed(SystemEventStream* stream) = 0;
66};
67
68}
69
70#undef DIMENCOSR_API
Maintains WorldObject and Sense objects during the application lifetime.
Definition: srcontext.h:80
Class of objects dealing with Streams of data.
Definition: sense.h:42
Interface for listening to SR_systemEvent updates.
Definition: systemeventlistener.h:30
Stream of SR_systemEvent objects.
Definition: systemeventstream.h:38
Sense class which shares information about the SR system throughout the SR system and to applications...
Definition: systemsense.h:41
static SystemSense * create(SRContext &context)
Creates a functional SystemSense instance.
virtual std::shared_ptr< SystemEventStream > openSystemEventStream(SystemEventListener *listener)=0
Creates a SystemEventStream for listener to be connected to.
virtual void streamClosed(SystemEventStream *stream)=0
Closes a specific SystemEventStream.
Namespace containing all C++ Simulated Reality classes.
Definition: srconfiguration.h:25
#define DIMENCOSR_API
Definition: systemsense.h:26