VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ifDebugDrawConnector.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2019 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 #pragma once
6 
7 //VR-Forces includes
9 #include <vrfmsgs/messageTypes.h>
10 
11 //VR-Link includes
12 #include <vlutil/vlString.h>
13 #include <vlutil/vlNetTypes.h>
14 
15 //Class DtIfDebugDrawConnector
19 {
20 public:
21 
22  //default constructor
24 
25  //destructor
26  virtual ~DtIfDebugDrawConnector();
27 
28  //copy constructor
30 
31  //assignment operator
33 
34  //Returns the type of interface content (DtIfDebugDrawConnectorType as defined
35  //above).
36  virtual int type() const;
37 
38  //Calls the copy constructor to create a clone
39  virtual DtSimInterfaceContent * clone() const;
40 
41  //Get the IP string
42  virtual const DtString& ip() const;
43 
44  //Set the message string
45  virtual void setIp(const DtString& ipString);
46 
47  //Get the port number
48  virtual unsigned int port() const;
49 
50  //Set the number
51  virtual void setPort(unsigned int port);
52 
53  //See if this is a connection or disconnection request
54  virtual bool connect() const;
55 
56  //Set if this is a connection(true)/disconnection(false)
57  virtual void setConnect(bool connect);
58 
59  //Get the Sim address string
60  virtual const DtString& simAddress() const;
61 
62  //Set the message string
63  virtual void setSimAddress(const DtString& simAddressString);
64 
65 
66  //Returns the size of the full network representation padded to an 8-byte
67  //boundary.
68  virtual int netRepSize() const;
69 
70  //Fills in the message from the network buffer
71  virtual bool setFromNet(const char* contentBuffer,
72  unsigned contentSize);
73 
74  //Fills in the network buffer with the message contents
75  virtual bool setToNet();
76 
77  //Prints the formatted contents of the message into the given string
78  virtual void printDataToString(DtString& str);
79 
80  //Static creator function which gets registered with the
81  //DtInterfaceContentFactory
82  static DtSimInterfaceContent* creator();
83 
84 protected:
85 
89  DtU32 myGuiPort;
91  bool myConnect;
94 };
95 
96 
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)
Definition: simInterfaceContent.h:78
virtual int netRepSize() const
Definition: simInterfaceContent.h:76
#define DT_DLL_vrfmsgs
This file is used to determine how to build.
Definition: vrfmsgsDefines.h:28
virtual int type() const =0
DtU32 myGuiPort
Port used for the debugDrawRenderer.
Definition: ifDebugDrawConnector.h:89
DtString mySimAddress
SIM address string.
Definition: ifDebugDrawConnector.h:93
virtual void printDataToString(DtString &str)
const DtSimInterfaceContent & operator=(const DtSimInterfaceContent &orig)
DtString myGuiIP
IP address used for the debugDrawRenderer.
Definition: ifDebugDrawConnector.h:87
Message used to send a connect or disconnect message from GUI to debugDrawManager.
Definition: ifDebugDrawConnector.h:18
bool myConnect
Specified if we are currently connected or not.
Definition: ifDebugDrawConnector.h:91
virtual bool setToNet()
Definition: simInterfaceContent.h:83
Definition: simInterfaceContent.h:45
virtual DtSimInterfaceContent * clone() const =0

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)