VR-Link API Documentation for HLA 1.3
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
vl
standardVariableRecord.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 <
vlutil/vlMachineTypes.h
>
9
#include "
vl/hostStructs.h
"
10
#include "
vl/packets/standardVariableRecordP.h
"
11
12
enum
DtStandardVariableRetCode
13
{
14
DtStandardVariableValid
,
15
DtStandardVariableBadLength
,
16
DtStandardVariableBadId
,
17
DtStandardVariableBadIndex
18
};
19
20
class
DT_DLL_VL
DtStandardVariableRecord
21
{
22
public
:
23
25
DtStandardVariableRecord
();
26
28
virtual
bool
operator==
(
const
DtStandardVariableRecord
& other) = 0;
29
31
virtual
unsigned
int
recordType()
const
= 0;
32
virtual
void
setRecordType(
unsigned
int
recordType) = 0;
33
35
virtual
unsigned
int
recordLength()
const
= 0;
36
virtual
void
setRecordLength(
unsigned
int
recordLength) = 0;
37
39
virtual
void
printData()
const
;
40
42
virtual
void
printDataToStream(std::ostream& stream)
const
= 0;
43
44
// Writes the network representation to the given address.
45
// The assumption is that this memory is allocated and is of the proper size.
46
virtual
void
writeRecord(
void
* addr)
const
= 0;
47
49
virtual
void
setFromNet(
const
void
* netRecord,
unsigned
int
length,
DtStandardVariableRetCode
* retCode = NULL) = 0;
50
52
virtual
unsigned
unpaddedNetsize()
const
= 0;
53
55
virtual
unsigned
int
netSize();
56
58
virtual
DtStandardVariableRecord
* clone()
const
= 0;
59
60
};
Document ID: Generated on Wed Oct 23 22:25:48 EDT 2013 from SVN revision 132765
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)