Simulated Reality SDK
7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
simulatedreality-win64-Release
include
sr
sense
system
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
"
17
#include "
sr/management/srcontext.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
29
namespace
SR
{
30
41
class
DIMENCOSR_API
SystemSense
:
public
Sense
{
42
43
public
:
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
SR::SRContext
Maintains WorldObject and Sense objects during the application lifetime.
Definition:
srcontext.h:80
SR::Sense
Class of objects dealing with Streams of data.
Definition:
sense.h:42
SR::SystemEventListener
Interface for listening to SR_systemEvent updates.
Definition:
systemeventlistener.h:30
SR::SystemEventStream
Stream of SR_systemEvent objects.
Definition:
systemeventstream.h:38
SR::SystemSense
Sense class which shares information about the SR system throughout the SR system and to applications...
Definition:
systemsense.h:41
SR::SystemSense::create
static SystemSense * create(SRContext &context)
Creates a functional SystemSense instance.
SR::SystemSense::openSystemEventStream
virtual std::shared_ptr< SystemEventStream > openSystemEventStream(SystemEventListener *listener)=0
Creates a SystemEventStream for listener to be connected to.
SR::SystemSense::streamClosed
virtual void streamClosed(SystemEventStream *stream)=0
Closes a specific SystemEventStream.
SR
Namespace containing all C++ Simulated Reality classes.
Definition:
srconfiguration.h:25
srcontext.h
systemevent.h
systemeventlistener.h
systemeventstream.h
DIMENCOSR_API
#define DIMENCOSR_API
Definition:
systemsense.h:26
Generated by
1.9.2