VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
vehicleEnc.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1998 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 #if DtHLA
6 
7 #ifndef VehicleEncoder_H_
8 #define VehicleEncoder_H_
9 
10 #include "myFomMap.h"
11 #include <vl/hlaStateEncoder.h>
12 
14 
18 #define DtDECLARE_TEST_ATTR_CHECKER(attrName) \
19  DtDECLARE_ATTR_CHECKER(DtEntityStateRepository, attrName)
20 
24 #define DtDECLARE_TEST_ATTR_ENCODER(attrName) \
25  DtDECLARE_ATTR_ENCODER(DtEntityStateRepository, attrName)
26 
30 {
31 public:
32 
33  // default constructor
34  VehicleEncoder(DtExerciseConn* exConn, DtObjClassDesc* classDesc);
35 
36  // destructor
37  virtual ~VehicleEncoder();
38 
39 protected:
40 
41  // Individual attribute encoding functions - one for each attribute.
42  // This macro expands to look like this:
43  // static void encodeVehicleType(const DtEntityStateRepository& rep,
44  // RTI::AttributeHandleValuePairSet* attrs,
45  // RTI::AttributeHandle attrHandle)
46  DtDECLARE_TEST_ATTR_ENCODER(VehicleType);
48 
49  // Individual attribute checking functions - one for each attribute.
50  // This macro expands to look like this:
51  // static bool needNumber(const DtEntityStateRepository& rep,
52  // const DtEntityStateRepository& asSeenByRemote);
53 
54  DtDECLARE_TEST_ATTR_CHECKER(VehicleType);
56 };
57 
58 #endif
59 #endif
#define DT_DLL_FOMMAP
Definition: myFomMap.h:21
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnHLA.h:58
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
This file contains the declaration of DtHlaStateEncoder.
DtHlaStateEncoder is used to provide encoding of a state repository into a state message in an HLA (a...
Definition: hlaStateEncoder.h:30
An instance of DtObjClassDesc is a &quot;class descriptor&quot; for an HLA Object class.
Definition: objClassDesc13.h:41
Instances of DtEntityStateRepository are used to maintain attributes and state of entity objects in a...
Definition: entityStateRepository.h:36
#define DtDECLARE_TEST_ATTR_CHECKER(attrName)
This macro is used to declare static member functions for determining whether or not an attribute&#39;s u...
Definition: vehicleEnc.h:18
#define DtDECLARE_TEST_ATTR_ENCODER(attrName)
This macro is used to declare static member functions that perform attribute encoding.
Definition: vehicleEnc.h:24
A simple FOM encoder class.
Definition: vehicleEnc.h:29

Document ID: Generated on Tue Feb 2 21:02:17 EST 2021 from SVN revision 223668
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)