LeiaSR SDK 720218b2 v1.32.7.6322 2025-02-13T14:55:38Z
Stable
receiver.h
Go to the documentation of this file.
1
5#pragma once
6#include "packet.h"
7
8#ifdef WIN32
9# ifdef COMPILING_DLL_SimulatedRealityCore
10# define DIMENCOSR_API __declspec(dllexport)
11# else
12# define DIMENCOSR_API __declspec(dllimport)
13# endif
14#else
15# define DIMENCOSR_API
16#endif
17
18namespace SR {
19
26public:
34 virtual void receive(SR_packet& packet) = 0;
35
44 virtual void print(SR_packet& packet) = 0;
45
51 virtual ~Receiver() {};
52};
53
54}
55
56#undef DIMENCOSR_API
Interface to be used to enable receiving SR_packet from other SR applications.
Definition: receiver.h:25
virtual void receive(SR_packet &packet)=0
Receives SR_packet sent over network.
virtual void print(SR_packet &packet)=0
Prints text representation of SR_packet.
virtual ~Receiver()
Ensures that the destructor of extending classes is called when a pointer has been cast to Receiver*.
Definition: receiver.h:51
Namespace containing all C++ Simulated Reality classes.
Definition: srconfiguration.h:20
#define DIMENCOSR_API
Definition: receiver.h:15
C-compatible struct for communication between SR applications.
Definition: packet.h:20