VR-Link API Documentation for HLA Evolved
 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 VT MAK
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.
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 
void encodeMass(const MyEntityStateRep &stateRep, RTI::AttributeHandleValuePairSet *avList, RTI::AttributeHandle handle)
Because this example adds a concept that did not already exist in VR-Link&#39;s DtFireInteraction class...
Definition: myFireInter.h:16
bool needMass(const MyEntityStateRep &stateRep, const MyEntityStateRep &asSeenByRemote)
void encodeTemperature(const MyFireInteraction &fire, RTI::ParameterHandleValuePairSet *pvList, RTI::ParameterHandle handle)
void configFomMapper(DtFomMapper *mapper)
void decodeTemperature(MyFireInteraction *fire, const RTI::ParameterHandleValuePairSet &pvlist, int pairSetIndex)
This file declares DtFomMapper.
Because this example adds a concept that did not already exist in VR-Link&#39;s DtEntityStateRepository c...
Definition: myEsr.h:16
void decodeMass(MyEntityStateRep *stateRep, const RTI::AttributeHandleValuePairSet &avlist, int pairSetIndex)
Instances of DtFomMapper are used to provide FOM agility in VR-Link by mapping VR-Link classes and fu...
Definition: fomMapper.h:36

Document ID: Generated on Tue Aug 10 00:12:31 EDT 2021 from SVN revision 232765
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)