VR-Link API Documentation for DIS
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
examples
stateRepoExt
configFomMapper.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 2020 VT MAK
3
** All rights reserved.
4
*********************************************************************/
5
#pragma once
6
#if DtHLA
7
8
#include <
vl/fomMapper.h
>
9
#include "
myStateRepoExt.h
"
10
#include <
vl/stateRepository.h
>
11
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
// "Mass". It also registers encoding and decoding functions for a new
16
// parameter of the "WeaponFire" interaction class called "Temperature".
17
void
configFomMapper(DtFomMapper* mapper);
18
19
// The encoding, decoding and checking functions that configFomMapper
20
// registers:
21
22
23
// Encoding function to be used for the "rank" attribute.
24
void
encodeDIGuyPatches(
const
DtStateRepository
& stateRep,
25
RTI::AttributeHandleValuePairSet* avList,
26
RTI::AttributeHandle handle);
27
28
// Decoding function to be used for the "rank" attribute.
29
void
decodeDIGuyPatches(
DtStateRepository
* stateRep,
30
const
RTI::AttributeHandleValuePairSet& avlist,
31
int
pairSetIndex);
32
33
// Checking function to be used for the "rank" attribute (checks whether
34
// update condition has been met).
35
bool
needDIGuyPatches(
36
const
DtStateRepository
& stateRep,
37
const
DtStateRepository
& asSeenByRemote);
38
39
40
#endif
41
Document ID: Generated on Mon Jun 22 21:18:40 EDT 2020 from SVN revision 213785
Copyright © 2005-2018 MAK Technologies. All Rights Reserved (
www.mak.com
)