VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
initDis.h
Go to the documentation of this file.
1 /*********************************************************************************
2 ** Copyright (c) 1992-2025 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************************/
5 
10 #pragma once
11 
13 
14 #include <string>
15 #include <vector>
16 
17 
19 {
20 public:
21 
22 
23 
24 
26  virtual ~InitDISMessage();
27 
28  virtual std::string getDeviceAddress();
29  virtual void setDeviceAddress(std::string val);
30 
31  virtual std::string getDestinationAddress();
32  virtual void setDestinationAddress(std::string val);
33 
34  virtual int getPort();
35  virtual void setPort(int val);
36 
37  virtual int getExercise();
38  virtual void setExercise(int val);
39 
40  virtual int getSite();
41  virtual void setSite(int val);
42 
43  virtual int getApplication();
44  virtual void setApplication(int val);
45 
46  virtual int getDisVersion();
47  virtual void setDisVersion(int val);
48 
49  virtual std::vector<std::string> getMulticastAddresses();
50  virtual void setMulticastAddresses(std::vector<std::string> val);
51 
52  virtual std::string getSubnetMask();
53  virtual void setSubnetMask(std::string val);
54 
55  virtual bool getUseAbsoluteTimestamps();
56  virtual void setUseAbsoluteTimestamps(bool val);
57 
58  virtual int getNotifyLevel();
59  virtual void setNotifyLevel(int val);
60 
61  virtual bool getNetworkBigEndian();
62  virtual void setNetworkBigEndian(bool val);
63 
64  virtual int getMcastTtl();
65  virtual void setMcastTtl(int val);
66 
67 
68 
69  virtual int messageSize();
70 
71  static DtMessage* decode(unsigned char* buffer, int length);
72  static std::string theMessageName();
73 
74 protected:
75  static std::string theFullName;
76 
77  std::string myDeviceAddress;
78  std::string myDestinationAddress;
79  int myPort;
81  int mySite;
84  std::vector<std::string> myMulticastAddresses;
85  std::string mySubnetMask;
90 
91  virtual void serialize(DtStreamWriter& writer);
92  virtual void deserialize(DtStreamReader& reader);
93 };
static std::string theFullName
Definition: initDis.h:75
int mySite
Definition: initDis.h:81
int myPort
Definition: initDis.h:79
int myDisVersion
Definition: initDis.h:83
int myNotifyLevel
Definition: initDis.h:87
virtual int messageSize()
this function needs to be in each derived class for decoding
#define MANAGEDINTERFACE_DLL
Definition: plugin.h:15
Definition: initDis.h:18
std::string myDestinationAddress
Definition: initDis.h:78
Defines the base class for all messages that are sent to and from C#.
This is the DtMessage class.
Definition: message.h:20
int myMcastTtl
Definition: initDis.h:89
int myApplication
Definition: initDis.h:82
bool myUseAbsoluteTimestamps
Definition: initDis.h:86
bool myNetworkBigEndian
Definition: initDis.h:88
int myExercise
Definition: initDis.h:80
Instances of DtStreamWriter encode values into a byte array.
Definition: byteStream.h:74
std::string mySubnetMask
Definition: initDis.h:85
Instances of DtStreamReader decode values from a byte array.
Definition: byteStream.h:31
virtual void serialize(DtStreamWriter &writer)
std::vector< std::string > myMulticastAddresses
Definition: initDis.h:84
std::string myDeviceAddress
Definition: initDis.h:77
virtual void deserialize(DtStreamReader &reader)

Document ID: Generated on Thu Oct 16 00:12:25 EDT 2025 from SVN revision 280738
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)