VR-Forces 4.2 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
examples
addAttr
addAttrSim
configFomMap.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2004 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: configFomMap.h,v $ $Revision: 1.4 $ $State: Exp $
7
*******************************************************************************/
8
9
#ifndef configFomMapper_H_
10
#define configFomMapper_H_ 1
11
12
#if DtHLA
13
14
#include <vl/fomMapper.h>
15
#include "
myEsr.h
"
16
17
//This function registers new encoding, decoding, and checking functions with
18
//a FOM Mapper for the new attribute of the "BaseEntity" object class called
19
//"Mass".
20
21
void
configFomMapper
(DtFomMapper* mapper);
22
23
//The encoding, decoding and checking functions that configFomMapper
24
//registers:
25
26
//Encoding function to be used for the "Mass" attribute.
27
void
encodeMass
(
const
MyEntityStateRep
& stateRep,
28
RTI::AttributeHandleValuePairSet* avList,
29
RTI::AttributeHandle handle);
30
31
//Decoding function to be used for the "Mass" attribute.
32
void
decodeMass
(
MyEntityStateRep
* stateRep,
33
const
RTI::AttributeHandleValuePairSet& avlist,
34
int
pairSetIndex);
35
36
//Checking function to be used for the "Mass" attribute (checks whether
37
//update condition has been met).
38
bool
needMass
(
39
const
MyEntityStateRep
& stateRep,
40
const
MyEntityStateRep
& asSeenByRemote);
41
42
#endif
43
#endif
Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)