VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
configFomMapper.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
8 #if DtHLA
9 
10 #include <vl/fomMapper.h>
11 #include "esrWithTemperature.h"
12 
13 // This function registers new encoding, decoding, and checking functions with
14 // a FOM Mapper for the new attribute of the "BaseEntity" object class called
15 // "Temperature".
16 
17 void configFomMapper(DtFomMapper* mapper);
18 
19 void unconfigFomMapper();
20 
21 // The encoding, decoding and checking functions that configFomMapper registers:
22 
23 //Encoding function to be used for the "Temperature" attribute.
25  RTI::AttributeHandleValuePairSet* avList,
26  RTI::AttributeHandle handle);
27 
28 //Decoding function to be used for the "Temperature" attribute.
30  const RTI::AttributeHandleValuePairSet& avlist,
31  int pairSetIndex);
32 
33 //Checking function to be used for the "Temperature" attribute (checks whether
34 //update condition has been met).
35 bool needTemperature(
36  const DtEntityStateRepWithTemperature& stateRep,
37  const DtEntityStateRepWithTemperature& asSeenByRemote);
38 
39 #endif
void configFomMapper(DtExerciseConn *exConn, bool runExtPropInit)
void unconfigFomMapper(DtExerciseConn *exConn)
void encodeTemperature(const DtEntityStateRepWithTemperature &stateRep, RTI::AttributeHandleValuePairSet *avList, RTI::AttributeHandle handle)
Definition: esrWithTemperature.h:19
void decodeTemperature(DtEntityStateRepWithTemperature *stateRep, const RTI::AttributeHandleValuePairSet &avlist, int pairSetIndex)
bool needTemperature(const DtEntityStateRepWithTemperature &stateRep, const DtEntityStateRepWithTemperature &asSeenByRemote)

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)