VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
configFomMap.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2010 MAK Technologies, Inc
3 ** All rights reserved.
4 *********************************************************************/
5 #pragma once
6 #if DtHLA
7 
8 #include <vl/fomMapper.h>
9 #include "myEsr.h"
10 #include "myFireInter.h"
11 
12 // This function registers new encoding, decoding, and checking functions with
13 // a FOM Mapper for the new attribute of the "BaseEntity" object class called
14 // "Mass". It also registers encoding and decoding functions for a new
15 // parameter of the "WeaponFire" interaction class called "Temperature".
16 void configFomMapper(DtFomMapper* mapper);
17 
18 // The encoding, decoding and checking functions that configFomMapper
19 // registers:
20 
21 // Encoding function to be used for the "Temperature" parameter.
22 void encodeTemperature(const MyFireInteraction& fire,
23  RTI::ParameterHandleValuePairSet* pvList,
24  RTI::ParameterHandle handle);
25 
26 // Decoding function to be used for the "Temperature" parameter.
27 void decodeTemperature(MyFireInteraction* fire,
28  const RTI::ParameterHandleValuePairSet& pvlist,
29  int pairSetIndex);
30 
31 // Encoding function to be used for the "Mass" attribute.
32 void encodeMass(const MyEntityStateRep& stateRep,
33  RTI::AttributeHandleValuePairSet* avList,
34  RTI::AttributeHandle handle);
35 
36 // Decoding function to be used for the "Mass" attribute.
37 void decodeMass(MyEntityStateRep* stateRep,
38  const RTI::AttributeHandleValuePairSet& avlist,
39  int pairSetIndex);
40 
41 // Checking function to be used for the "Mass" attribute (checks whether
42 // update condition has been met).
43 bool needMass(
44  const MyEntityStateRep& stateRep,
45  const MyEntityStateRep& asSeenByRemote);
46 
47 #endif
48 
This file declares DtFomMapper.

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)