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 };

Document ID: Generated on Mon Jun 22 21:18:40 EDT 2020 from SVN revision 213785
Copyright © 2005-2018 MAK Technologies. All Rights Reserved (www.mak.com)