VR-Link API Documentation for HLA 1.3
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
examples
myFomMap
vehicleEnc.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1998 MaK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
#if DtHLA
6
7
#ifndef VehicleEncoder_H_
8
#define VehicleEncoder_H_
9
10
#include "
myFomMap.h
"
11
#include <
vl/hStateEncoder.h
>
12
13
class
DT_DLL_VL
DtEntityStateRepository
;
14
18
#define DtDECLARE_TEST_ATTR_CHECKER(attrName) \
19
DtDECLARE_ATTR_CHECKER(DtEntityStateRepository, attrName)
20
24
#define DtDECLARE_TEST_ATTR_ENCODER(attrName) \
25
DtDECLARE_ATTR_ENCODER(DtEntityStateRepository, attrName)
26
29
class
DT_DLL_FOMMAP
VehicleEncoder
:
public
DtHlaStateEncoder
30
{
31
public
:
32
33
// default constructor
34
VehicleEncoder
(
DtExerciseConn
* exConn,
DtObjClassDesc
* classDesc);
35
36
// destructor
37
virtual
~
VehicleEncoder
();
38
39
protected
:
40
41
// Individual attribute encoding functions - one for each attribute.
42
// This macro expands to look like this:
43
// static void encodeVehicleType(const DtEntityStateRepository& rep,
44
// RTI::AttributeHandleValuePairSet* attrs,
45
// RTI::AttributeHandle attrHandle)
46
DtDECLARE_TEST_ATTR_ENCODER
(VehicleType);
47
DtDECLARE_TEST_ATTR_ENCODER
(GeocLoc);
48
49
// Individual attribute checking functions - one for each attribute.
50
// This macro expands to look like this:
51
// static bool needNumber(const DtEntityStateRepository& rep,
52
// const DtEntityStateRepository& asSeenByRemote);
53
54
DtDECLARE_TEST_ATTR_CHECKER
(VehicleType);
55
DtDECLARE_TEST_ATTR_CHECKER
(GeocLoc);
56
};
57
58
#endif
59
#endif
Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)