VR-Forces 4.7 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrfmsgs
vrfTDLMessage.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2017 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
6
#pragma once
7
9
12
13
#include "
vrfmsgs/vrfmsgsDefines.h
"
14
#include <vl/hostStructs.h>
15
23
26
struct
DtVrfTDLMessageHeader
27
{
28
DtVrfTDLMessageHeader
()
29
:
myHeaderVersion
(0)
30
,
myMessageVersion
(0)
31
,
myMessageType
(0)
32
,
mySenderMarkingTextLength
(0)
33
,
mySenderUUIDLength
(0)
34
,
myTimeStamp
(0)
35
,
myFixedSize
(0)
36
,
myVariableSize
(0)
37
{
38
}
39
40
DtNetU32
myHeaderVersion
;
41
DtNetU32
myMessageVersion
;
42
DtNetU32
myMessageType
;
43
DtNetU32
myFixedSize
;
44
DtNetU32
myVariableSize
;
45
DtNetU32
mySenderMarkingTextLength
;
46
DtNetU32
mySenderUUIDLength
;
47
DtNetU64
myTimeStamp
;
48
};
49
50
class
DtVrfTDLMessageFactory
;
51
52
class
DT_DLL_vrfmsgs
DtVrfTDLMessage
53
{
54
public
:
55
57
DtVrfTDLMessage
();
58
60
DtVrfTDLMessage
(
const
DtVrfTDLMessage
& orig);
61
63
const
DtVrfTDLMessage
& operator=(
DtVrfTDLMessage
& orig);
64
66
virtual
~
DtVrfTDLMessage
();
67
69
virtual
int
tdlMessageType()
const
;
70
71
virtual
DtVrfTDLMessage
* clone()
const
;
72
static
DtVrfTDLMessage
* creator();
73
74
virtual
int
messageVersion()
const
;
75
virtual
int
headerVersion()
const
;
76
78
virtual
int
getContentType(
const
char
* buffer);
79
81
virtual
void
printDataToString(
DtString
& str);
82
84
static
void
setFactory(
DtVrfTDLMessageFactory
*);
85
static
DtVrfTDLMessageFactory
* factory();
86
88
virtual
void
setRecipient(
const
DtSimulationAddress & recipient);
89
virtual
const
DtSimulationAddress & recipient()
const
;
90
92
virtual
void
setSender(
const
DtSimulationAddress & recipient);
93
virtual
const
DtSimulationAddress & sender()
const
;
94
96
virtual
int
netRepSize()
const
;
97
100
virtual
const
char
* netRep();
101
105
virtual
void
setToNet(
char
* buffer);
106
108
virtual
bool
setFromNet(
const
char
* buffer,
int
bufferSize);
109
113
virtual
int
fixedSize()
const
;
114
116
virtual
int
variableSize()
const
;
117
119
virtual
void
setMarkingText(
const
DtString
&);
120
virtual
const
DtString
& markingText()
const
;
121
123
virtual
void
setUUID(
const
DtString
&);
124
virtual
const
DtString
& uuid()
const
;
125
127
virtual
void
setTimeStamp(
unsigned
int
);
128
virtual
unsigned
int
timeStamp()
const
;
129
130
protected
:
132
virtual
char
* createNetworkBuffer();
133
135
virtual
void
setFixedToNet(
char
* buffer);
136
139
virtual
int
setFixedFromNet(
const
char
* buffer);
140
143
virtual
const
char
* setVariableFromNet(
const
char
* buffer,
const
char
* fixedBuffer,
int
messageVersion);
144
146
virtual
char
* setVariableToNet(
char
* buffer);
147
148
protected
:
149
static
DtVrfTDLMessageFactory
*
theVrfTDLMessageFactory
;
150
151
DtSimulationAddress
myRecipient
;
152
DtSimulationAddress
mySender
;
153
154
char
*
myNetRep
;
155
int
myLastAllocatedSize
;
156
157
DtString
myMarkingText
;
158
DtString
myUUID
;
159
unsigned
int
myTimeStamp
;
160
};
Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)