VR-Link API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
sensorEncoder.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 *********************************************************************/
5 
6 
7 #ifndef DtSensorEncoder_H_
8 #define DtSensorEncoder_H_
9 
10 #if DtHLA
11 
12 #include "physicalEntityEncoder.h"
13 #include "entityStateRepository.h"
14 
18 
24 
26 {
27 public:
28 
31  DtExerciseConn* exConn,
32  DtObjClassDesc* classDesc);
33 
35  virtual ~DtSensorEncoder();
36 
38  DtSensorEncoder(const DtSensorEncoder& orig);
39 
42 
43 public:
44 
47  static DtHlaStateEncoder* create(
48  DtExerciseConn* exConn,
49  DtObjClassDesc* classDesc);
50 
51 protected:
52 
54  DtDECLARE_ENTITY_ATTR_CHECKER(AntennaRaised);
55  DtDECLARE_ENTITY_ATTR_CHECKER(BlackoutLightsOn);
57  DtDECLARE_ENTITY_ATTR_CHECKER(InteriorLightsOn);
58  DtDECLARE_ENTITY_ATTR_CHECKER(MissionKill);
59 
61  DtDECLARE_ENTITY_ATTR_ENCODER(AntennaRaised);
62  DtDECLARE_ENTITY_ATTR_ENCODER(BlackoutLightsOn);
64  DtDECLARE_ENTITY_ATTR_ENCODER(InteriorLightsOn);
65  DtDECLARE_ENTITY_ATTR_ENCODER(MissionKill);
66 };
67 
73 #define DtDEFINE_SIMPLE_SENSOR_ATTR_ENCODER( \
74  attrName, netType, inspector) \
75  DtDEFINE_SIMPLE_ATTR_ENCODER( \
76  DtSensorEncoder, \
77  DtEntityStateRepository, \
78  attrName, netType, inspector)
79 
85 #define DtDEFINE_SIMPLE_SENSOR_ATTR_CHECKER( \
86  attrName, inspector) \
87  DtDEFINE_SIMPLE_ATTR_CHECKER( \
88  DtSensorEncoder, \
89  DtEntityStateRepository, \
90  attrName, inspector)
91 
92 #define DtDEFINE_SENSOR_LIGHT_ATTR_CHECKER(attrName, arg1) \
93  DtDEFINE_LIGHT_ATTR_CHECKER(DtSensorEncoder, attrName, arg1);
94 
95 #define DtDEFINE_SENSOR_LIGHT_ATTR_ENCODER(attrName, arg1) \
96  DtDEFINE_LIGHT_ATTR_ENCODER(DtSensorEncoder, attrName, arg1);
97 
98 #endif
99 #endif
100 
Instances of DtExerciseConn are used to provide an application's interface or connection to the netwo...
Definition: exerciseConnHLA.h:60
DtPhysicalEntityEncoder & operator=(const DtPhysicalEntityEncoder &orig)
assignment operator
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
DtDECLARE_ENTITY_ATTR_ENCODER(DamageState)
Static encode<Attribute> member functions.
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 "class descriptor" for an HLA Object class.
Definition: objClassDesc1516.h:41
DtDECLARE_ENTITY_ATTR_CHECKER(ArticulatedParametersArray)
Static need<Attribute> member functions.
This file provides a declaration of the class DtPhysicalEntityEncoder.
Contains the DtEntityStateRepository class declaration.
static DtHlaStateEncoder * create(DtExerciseConn *exConn, DtObjClassDesc *classDesc)
Create a DtPhysicalEntityEncoder.
class DtSensorEncoder:
Definition: sensorEncoder.h:25
class DtPhysicalEntityEncoder:
Definition: physicalEntityEncoder.h:25

Document ID: Generated on Mon Apr 25 03:39:01 EDT 2022 from SVN revision 242502
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)