VR-Vantage 2.5 API Documentation
Home
Modules
Namespaces
Classes
Files
Libraries
Examples
Tutorials
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
examples
exampleFomMapper
configFomMap.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2010 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
6
#pragma once
7
8
#if DtHLA
9
10
#include <vl/fomMapper.h>
11
#include "
MyEntityStateRepInterceptor.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
// "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
namespace
makVrv
23
{
24
namespace
DT_PROTOCOL_NAMESPACE
25
{
26
class
MyEntityStateRepInterceptor
;
27
}
28
}
29
30
// Encoding function to be used for the "Mass" attribute.
31
void
encodeMass
(
const
DtStateRepository
& stateRep,
32
RTI::AttributeHandleValuePairSet* avList,
33
RTI::AttributeHandle
handle
);
34
35
// Decoding function to be used for the "Mass" attribute.
36
void
decodeMass
(
DtStateRepository
* stateRep,
37
const
RTI::AttributeHandleValuePairSet& avlist,
38
int
pairSetIndex);
39
40
// Checking function to be used for the "Mass" attribute (checks whether
41
// update condition has been met).
42
bool
needMass
(
43
const
DtStateRepository
& stateRep,
44
const
DtStateRepository
& asSeenByRemote);
45
46
#endif
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)