VR-Vantage 2.6 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
rfxMessage.h
Go to the documentation of this file.
1 // ******************************************************************************
2 // ** Copyright (c) 2016 MAK Technologies, Inc.
3 // ** All rights reserved.
4 // ******************************************************************************
5 
6 
11 
12 
13 #pragma once
14 
15 #include "export.h"
16 #include "byteStream.h"
17 #include "rfxMessageTypes.h"
18 
19 #include <string>
20 
21 namespace makRadarFx
22 {
26 {
27  public:
29  DtBaseMessage();
30  virtual ~DtBaseMessage();
31 
33  virtual unsigned int messageType() const;
34 
37  virtual unsigned char* encode();
38 
40  //static DtMessage* decode(char* buffer, int length);
41 
43  virtual int messageSize();
44 
47  virtual DtBaseMessage* clone() = 0;
48 
52  virtual void setRequestorId(const std::string& requestor);
53  virtual std::string requestorId();
54 
58  virtual void setRequestId(int id);
59  virtual int requestId();
60 
61  protected:
62  virtual void serialize(DtStreamWriter& writer);
63  virtual void deserialize(DtStreamReader& reader);
64 
65  unsigned int myMessageType;
66  std::string myRequestorId;
68 };
69 }
70 
Defines the IDs for RadarFX message types.
DtBaseMessage is the base class for all messages that can be sent between the server and the client...
Definition: rfxMessage.h:25
int myRequestId
Definition: rfxMessage.h:67
Instances of DtStreamWriter encode values into a byte array this writes the data to the stream in lit...
Definition: byteStream.h:74
Defines the stream read and writer for encoding and decoding messages from byte arrays.
#define RFX_DLL_SHARED
Definition: include/radarFxShared/export.h:15
std::string myRequestorId
Definition: rfxMessage.h:66
unsigned int myMessageType
Definition: rfxMessage.h:65
Instances of DtStreamReader decode values from a byte array this assumes the data in the byte stream ...
Definition: byteStream.h:27


Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)