VR-Link API Documentation for HLA 1.3
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
examples
myFomMap
vehicleDec.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1998 MaK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
6
#if DtHLA
7
8
#ifndef VehicleDecoder_H_
9
#define VehicleDecoder_H_
10
11
#include "
myFomMap.h
"
12
#include <
vl/hStateDecoder.h
>
13
14
// Forward declaration of DtEntityStateRepository class.
15
class
DT_DLL_VL
DtEntityStateRepository
;
16
17
// We define several macros that can be helpful in defining the class, and the
18
// individual decoding functions.
19
24
#define DtDECLARE_VEHICLE_ATTR_DECODER(attrName) \
25
DtDECLARE_ATTR_DECODER(DtEntityStateRepository, attrName)
26
29
class
DT_DLL_FOMMAP
VehicleDecoder
:
public
DtHlaStateDecoder
30
{
31
public
:
32
33
// default constructor
34
VehicleDecoder
(
DtExerciseConn
* exConn,
DtObjClassDesc
* classDesc);
35
36
// destructor
37
virtual
~
VehicleDecoder
();
38
39
protected
:
40
41
// Individual attribute decoding functions - one for each attribute.
42
// These macros expand to look like this:
43
// static void decodeVehicleType(DtEntityStateRepository* stateRep,
44
// const RTI::AttributeHandleValuePairSet& attrs, int pairSetIndex)
45
46
DtDECLARE_VEHICLE_ATTR_DECODER
(VehicleType);
47
DtDECLARE_VEHICLE_ATTR_DECODER
(GeocLoc);
48
};
49
50
#endif
51
#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
)