VR-Link API Documentation for HLA 1516
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.
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 
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);
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)