VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
subscribe.h
Go to the documentation of this file.
1 /*********************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************************/
5 
10 #pragma once
11 
13 
14 #include <string>
15 
16 
18 {
19 public:
20  enum SubscribeType {SubscribeType_Object, SubscribeType_Interaction};
21 
22 
23 
24 
26  virtual ~SubscribeMessage();
27 
28  virtual bool getSubscribed();
29  virtual void setSubscribed(bool val);
30 
31  virtual SubscribeType getSubscriptionType();
32  virtual void setSubscriptionType(SubscribeType val);
33 
34  virtual std::string getClassName();
35  virtual void setClassName(std::string val);
36 
37 
38 
39  virtual int messageSize();
40 
41  static DtMessage* decode(unsigned char* buffer, int length);
42  static std::string theMessageName();
43 
44 protected:
45  static std::string theFullName;
46 
49  std::string myClassName;
50 
51  virtual void serialize(DtStreamWriter& writer);
52  virtual void deserialize(DtStreamReader& reader);
53 };
virtual int messageSize()
this function needs to be in each derived class for decoding
#define MANAGEDINTERFACE_DLL
Definition: plugin.h:15
Definition: subscribe.h:20
Defines the base class for all messages that are sent to and from C#.
This is the DtMessage class.
Definition: message.h:20
bool mySubscribed
Definition: subscribe.h:47
SubscribeType
Definition: subscribe.h:20
Instances of DtStreamWriter encode values into a byte array.
Definition: byteStream.h:74
Instances of DtStreamReader decode values from a byte array.
Definition: byteStream.h:31
virtual void serialize(DtStreamWriter &writer)
static std::string theFullName
Definition: subscribe.h:45
std::string myClassName
Definition: subscribe.h:49
SubscribeType mySubscriptionType
Definition: subscribe.h:48
Definition: subscribe.h:17
virtual void deserialize(DtStreamReader &reader)

Document ID: Generated on Mon Apr 25 03:39:01 EDT 2022 from SVN revision 242502
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)