LeiaSR SDK 720218b2 v1.32.7.6322 2025-02-13T14:55:38Z
Stable
systemsense.h
Go to the documentation of this file.
1
5#pragma once
6#include <map>
7#include <thread>
8#include <mutex>
9#include "systemevent.h"
10#include "systemeventstream.h"
11#include "systemeventlistener.h"
13
14#ifdef WIN32
15# ifdef COMPILING_DLL_SimulatedRealityCore
16# define DIMENCOSR_API __declspec(dllexport)
17# else
18# define DIMENCOSR_API __declspec(dllimport)
19# endif
20#else
21# define DIMENCOSR_API
22#endif
23
24namespace SR {
25
37
38public:
45 static SystemSense* create(SRContext &context);
46
53 virtual std::shared_ptr<SystemEventStream> openSystemEventStream(SystemEventListener* listener) = 0;
54
60 virtual void streamClosed(SystemEventStream* stream) = 0;
61};
62
63}
64
65#undef DIMENCOSR_API
Maintains WorldObject and Sense objects during the application lifetime.
Definition: srcontext.h:75
Class of objects dealing with Streams of data.
Definition: sense.h:37
Interface for listening to SR_systemEvent updates.
Definition: systemeventlistener.h:25
Stream of SR_systemEvent objects.
Definition: systemeventstream.h:33
Sense class which shares information about the SR system throughout the SR system and to applications...
Definition: systemsense.h:36
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:20
#define DIMENCOSR_API
Definition: systemsense.h:21