VR-Link API Documentation for HLA 1.3
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
examples
stateRepoExt
diguyPatchesRecord.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 2013 VT MAK
3
** All rights reserved.
4
*********************************************************************/
5
6
#pragma once
7
8
#include <
vl/genericVariableRecord.h
>
9
#include "
diguyPatchesRecordP.h
"
10
11
class
DtDiGuyPatchesRecord
:
public
DtStandardVariableRecord
12
{
13
public
:
14
16
DtDiGuyPatchesRecord
();
17
19
DtDiGuyPatchesRecord
(
const
DtDiGuyPatchesRecord
& orig);
20
22
DtDiGuyPatchesRecord
(
void
* netBuffer,
unsigned
int
size);
23
25
virtual
DtDiGuyPatchesRecord
&
operator=
(
const
DtDiGuyPatchesRecord
& record);
26
28
virtual
DtStandardVariableRecord
&
operator=
(
const
DtStandardVariableRecord
& other);
29
31
virtual
bool
operator==
(
const
DtDiGuyPatchesRecord
& record);
32
34
virtual
bool
operator==
(
const
DtStandardVariableRecord
& other);
35
37
38
virtual
unsigned
int
recordType
()
const
;
39
virtual
void
setRecordType
(
unsigned
int
recordType
);
41
43
44
virtual
unsigned
int
recordLength
()
const
;
46
virtual
void
setRecordLength
(
unsigned
int
length);
48
50
51
virtual
const
char
*
name
()
const
;
52
virtual
void
setName
(
const
DtString
& nameValue);
54
56
57
virtual
unsigned
int
unit
()
const
;
58
virtual
void
setUnit
(
unsigned
int
unitValue);
60
62
63
virtual
unsigned
personalUnit
()
const
;
64
virtual
void
setPersonalUnit
(
unsigned
int
unitValue);
66
68
69
virtual
short
rank
()
const
;
70
virtual
void
setRank
(
short
rank
);
72
73
// Writes the network representation to the given address.
74
// The assumption is that this memory is allocated and is of the proper size.
75
virtual
void
writeRecord
(
void
* addr)
const
;
76
79
virtual
void
setFromNet
(
const
void
* netRecord,
unsigned
int
length,
DtStandardVariableRetCode
* retCode = NULL);
80
82
virtual
void
printDataToStream
(std::ostream& stream)
const
;
83
85
virtual
unsigned
int
unpaddedNetsize
()
const
;
86
88
virtual
DtStandardVariableRecord
*
clone
()
const
;
89
90
public
:
91
93
static
DtStandardVariableRecord
*
create
(
void
* addr,
unsigned
int
length);
94
96
static
unsigned
int
recordTypeToUse
();
97
99
static
void
setRecordTypeToUse
(
unsigned
int
typeToUse);
100
101
protected
:
102
103
std::vector<char>
myRecordBuffer
;
104
DtNetDiguyPatchesRecord
*
myRecordPtr
;
105
char
*
myNamePtr
;
106
107
protected
:
108
109
static
const
unsigned
int
theMinimumSize
;
110
};
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
)