VR-Link API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
sensorDecoder.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 MAK Technologies, Inc
3 ** All rights reserved.
4 *********************************************************************/
5 
6 
7 #ifndef DtSensorDecoder_H_
8 #define DtSensorDecoder_H_
9 
10 #if DtHLA
11 
12 #include "physicalEntityDecoder.h"
13 
17 
19 
25 
27 {
28 public:
29 
32  DtExerciseConn* exConn,
33  DtObjClassDesc* classDesc);
34 
36  virtual ~DtSensorDecoder();
37 
40  const DtSensorDecoder& orig);
41 
44  const DtSensorDecoder& orig);
45 
46 public:
47 
50  static DtHlaStateDecoder* create(
51  DtExerciseConn* exConn,
52  DtObjClassDesc* classDesc);
53 
54 protected:
55 
59  void addMyDecoders();
60 
62  DtDECLARE_ENTITY_ATTR_DECODER(AntennaRaised);
63  DtDECLARE_ENTITY_ATTR_DECODER(BlackoutLightsOn);
65  DtDECLARE_ENTITY_ATTR_DECODER(InteriorLightsOn);
66  DtDECLARE_ENTITY_ATTR_DECODER(MissionKill);
67 };
68 
74 #define DtDEFINE_SIMPLE_SENSOR_ATTR_DECODER_WITH_CAST( \
75  attrName, netType, mutator, castExpr) \
76  DtDEFINE_SIMPLE_ATTR_DECODER_WITH_CAST( \
77  DtSensorDecoder, DtEntityStateRepository, \
78  attrName, netType, mutator, castExpr)
79 
80 #define DtDEFINE_SIMPLE_SENSOR_ATTR_DECODER( \
81  attrName, netType, inspector) \
82  DtDEFINE_SIMPLE_SENSOR_ATTR_DECODER_WITH_CAST( \
83  attrName, netType, inspector, (netType))
84 
85 #define DtDEFINE_SENSOR_LIGHT_ATTR_DECODER(attrName, arg1) \
86  DtDEFINE_LIGHT_ATTR_DECODER(DtSensorDecoder, attrName, arg1)
87 
88 #endif
89 #endif
90 
Instances of DtExerciseConn are used to provide an application's interface or connection to the netwo...
Definition: exerciseConnHLA.h:61
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
void addMyDecoders()
Add decoding functions for the attributes.
This file provides a declaration of the class DtPhysicalEntityDecoder.
DtDECLARE_ENTITY_ATTR_DECODER(DamageState)
Static decode<AttributeName> member functions.
class DtPhysicalEntityDecoder:
Definition: physicalEntityDecoder.h:32
An instance of DtObjClassDesc is a "class descriptor" for an HLA Object class.
Definition: objClassDesc13.h:41
DtPhysicalEntityDecoder & operator=(const DtPhysicalEntityDecoder &orig)
assignment operator
Instances of DtEntityStateRepository are used to maintain attributes and state of entity objects in a...
Definition: entityStateRepository.h:41
DtHlaStateDecoder is used to provide decoding of a state message into a state repository in an HLA (a...
Definition: hlaStateDecoder.h:34
class DtSensorDecoder:
Definition: sensorDecoder.h:26
static DtHlaStateDecoder * create(DtExerciseConn *exConn, DtObjClassDesc *classDesc)
Create a DtPhysicalEntityDecoder.

Document ID: Generated on Thu Sep 19 02:12:35 EDT 2024 from SVN revision 269601
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)