Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
receiver.h
Go to the documentation of this file.
1
10#pragma once
11#include "packet.h"
12
13#ifdef WIN32
14# ifdef COMPILING_DLL_SimulatedRealityCore
15# define DIMENCOSR_API __declspec(dllexport)
16# else
17# define DIMENCOSR_API __declspec(dllimport)
18# endif
19#else
20# define DIMENCOSR_API
21#endif
22
23namespace SR {
24
31public:
39 virtual void receive(SR_packet& packet) = 0;
40
49 virtual void print(SR_packet& packet) = 0;
50
56 virtual ~Receiver() {};
57};
58
59}
60
61#undef DIMENCOSR_API
Interface to be used to enable receiving SR_packet from other SR applications.
Definition: receiver.h:30
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:56
Namespace containing all C++ Simulated Reality classes.
Definition: srconfiguration.h:25
#define DIMENCOSR_API
Definition: receiver.h:20
C-compatible struct for communication between SR applications.
Definition: packet.h:25