VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfMessage.h
Go to the documentation of this file.
1 
6 
11 
12 
13 #pragma once
14 
18 
19 #include <string>
20 
21 namespace makVrf
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 
#define DT_DLL_DEBUGDRAWCONNECTOR
Definition: export.h:15
DtBaseMessage is the base class for all messages that can be sent between the server and the client...
Definition: vrfMessage.h:25
Instances of DtStreamReader decode values from a byte array this assumes the data in the byte stream ...
Definition: byteStream.h:27
unsigned int myMessageType
Definition: vrfMessage.h:65
Defines the stream read and writer for encoding and decoding messages from byte arrays.
DT_DLL_readerWriter char * encode(const DtFilename &val, char *buffer)
Serializes the provided value val into buffer. buffer must have at least the number of bytes returned...
Instances of DtStreamWriter encode values into a byte array this writes the data to the stream in lit...
Definition: byteStream.h:74
std::string myRequestorId
Definition: vrfMessage.h:66
** Copyright (c) 2020 MAK Technologies, Inc. ** All rights reserved.
int myRequestId
Definition: vrfMessage.h:67

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)