VR-Forces 5.0.2 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();
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 
44  static DtEntityIdentifier theNextEntityId;
45 };
46 
47 #endif
Definition: altEntityDec.h:22
static DtEntityIdentifier theNextEntityId
Definition: altEntityDec.h:44
DtExtEntityStateRepository class extends the DtExtEntityBaseStateRepository to be able to handle exte...
Definition: extEntityStateRepository.h:25
AlternateEntityDecoder(DtExerciseConn *exConn, DtObjClassDesc *classDesc)
virtual ~AlternateEntityDecoder()

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)