VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
altEntityDec.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2018 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
6 #if DtHLA
7 
8 #pragma once
9 
10 #include "altEntityDec.h"
11 #include <vl/hlaStateDecoder.h>
12 #include <vlpi/entityIdentifier.h>
13 
15 
16 // We define a macro that can be helpful in defining the class, and the
17 // individual decoding functions.
18 
19 #define DtDECLARE_MY_ATTR_DECODER(attrName) \
20  DtDECLARE_ATTR_DECODER(DtExtEntityStateRepository, attrName)
21 
23 {
24 public:
25 
26  // default constructor
27  AlternateEntityDecoder(DtExerciseConn* exConn, DtObjClassDesc* classDesc);
28 
29  // destructor
30  virtual ~AlternateEntityDecoder() override;
31 
32 protected:
33 
34  // Individual attribute decoding functions - one for each attribute.
35  // These macros expand to look like this:
36  // static void decodeName(DtEntityStateRepository* stateRep,
37  // const RTI::AttributeHandleValuePairSet& attrs, int pairSetIndex)
39  DtDECLARE_MY_ATTR_DECODER(AlternateEntityType);
40  DtDECLARE_MY_ATTR_DECODER(Latitude);
41  DtDECLARE_MY_ATTR_DECODER(Longitude);
42  DtDECLARE_MY_ATTR_DECODER(Altitude);
43 
45 
46  static DtEntityIdentifier theNextEntityId;
47 };
48 
49 #endif
Definition: altEntityDec.h:22
static DtEntityIdentifier theNextEntityId
Definition: altEntityDec.h:46
DtExtEntityStateRepository class extends the DtExtEntityBaseStateRepository to be able to handle exte...
Definition: extEntityStateRepository.h:25
static void updateGeocentricLocation(DtExtEntityStateRepository *stateRep)
AlternateEntityDecoder(DtExerciseConn *exConn, DtObjClassDesc *classDesc)
virtual ~AlternateEntityDecoder() override

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)