VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
altEntityEnc.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2018 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 #if DtHLA
6 
7 #pragma once
8 
9 #include "altEntityEnc.h"
10 #include <vl/hlaStateEncoder.h>
11 
13 
14 // We define macros that can be helpful in defining the class, and the
15 // individual encoding and checking functions.
16 
17 #define DtDECLARE_MY_ATTR_CHECKER(attrName) \
18  DtDECLARE_ATTR_CHECKER(DtExtEntityStateRepository, attrName)
19 
20 #define DtDECLARE_MY_ATTR_ENCODER(attrName) \
21  DtDECLARE_ATTR_ENCODER(DtExtEntityStateRepository, attrName)
22 
23 const unsigned AlternateEntityMaxAttributeSize = 256;
24 
26 {
27 public:
28 
29  // default constructor
30  AlternateEntityEncoder(DtExerciseConn* exConn, DtObjClassDesc* classDesc);
31 
32  // destructor
33  virtual ~AlternateEntityEncoder();
34 
35 protected:
36 
37  // Individual attribute encoding functions - one for each attribute.
38  // This macro expands to look like this:
39  // static void encodeName(const DtExtEntityStateRepository& rep,
40  // RTI::AttributeHandleValuePairSet* attrs,
41  // RTI::AttributeHandle attrHandle)
43  DtDECLARE_MY_ATTR_ENCODER(AlternateEntityType);
44  DtDECLARE_MY_ATTR_ENCODER(Latitude);
45  DtDECLARE_MY_ATTR_ENCODER(Longitude);
46  DtDECLARE_MY_ATTR_ENCODER(Altitude);
47 
48  // Individual attribute checking functions - one for each attribute.
49  // This macro expands to look like this:
50  // static bool needName(const DtExtEntityStateRepository& rep,
51  // const DtExtEntityStateRepository& asSeenByRemote);
53  DtDECLARE_MY_ATTR_CHECKER(AlternateEntityType);
54  DtDECLARE_MY_ATTR_CHECKER(Latitude);
55  DtDECLARE_MY_ATTR_CHECKER(Longitude);
56  DtDECLARE_MY_ATTR_CHECKER(Altitude);
57 
59 };
60 
61 #endif
AlternateEntityEncoder(DtExerciseConn *exConn, DtObjClassDesc *classDesc)
DtExtEntityStateRepository class extends the DtExtEntityBaseStateRepository to be able to handle exte...
Definition: extEntityStateRepository.h:25
static char theBuffer[AlternateEntityMaxAttributeSize]
Definition: altEntityEnc.h:58
Definition: altEntityEnc.h:25
virtual ~AlternateEntityEncoder()
const unsigned AlternateEntityMaxAttributeSize
Definition: altEntityEnc.h:23

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)