VR-Link API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
message.h
Go to the documentation of this file.
1 /*********************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************************/
5 
6 #pragma once
7 
11 
13 
14 #include "vlpi/byteStream.h"
15 
16 #include <string>
17 #include <vector>
18 
21 {
22 public:
24  DtMessage();
26  virtual ~DtMessage();
27 
29  virtual std::string name() const;
30 
31  virtual double timeStamp();
32  virtual void setTimeStamp(double ts);
33 
35  virtual unsigned char* encode();
36 
38  //static DtMessage* decode(unsigned char* buffer, int length);
39 
41  virtual int messageSize();
42 
43 protected:
44  std::string myName;
46 
47  virtual void serialize(DtStreamWriter& writer);
48  virtual void deserialize(DtStreamReader& reader);
49 };
#define MANAGEDINTERFACE_DLL
Definition: plugin.h:15
std::string myName
Definition: message.h:44
This is the DtMessage class.
Definition: message.h:20
provides several classes for reading and writing to a stream of bytes
Instances of DtStreamWriter encode values into a byte array.
Definition: byteStream.h:74
DtTime myTimeStamp
Definition: message.h:45
Instances of DtStreamReader decode values from a byte array.
Definition: byteStream.h:31

Document ID: Generated on Tue Aug 10 00:12:31 EDT 2021 from SVN revision 232765
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)