VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 void unconfigFomMapper();
24 
25 //The encoding, decoding and checking functions that configFomMapper
26 //registers:
27 
28 //Encoding function to be used for the "Mass" attribute.
29 void encodeMass(const MyEntityStateRep& stateRep,
30  RTI::AttributeHandleValuePairSet* avList,
31  RTI::AttributeHandle handle);
32 
33 //Decoding function to be used for the "Mass" attribute.
34 void decodeMass(MyEntityStateRep* stateRep,
35  const RTI::AttributeHandleValuePairSet& avlist,
36  int pairSetIndex);
37 
38 //Checking function to be used for the "Mass" attribute (checks whether
39 //update condition has been met).
40 bool needMass(
41  const MyEntityStateRep& stateRep,
42  const MyEntityStateRep& asSeenByRemote);
43 
44 #endif
45 #endif
Because this example adds a concept that did not already exist in VR-Link&#39;s DtEntityStateRepository c...
Definition: myEsr.h:24
void decodeMass(MyEntityStateRep *stateRep, const RTI::AttributeHandleValuePairSet &avlist, int pairSetIndex)
void unconfigFomMapper()
void encodeMass(const MyEntityStateRep &stateRep, RTI::AttributeHandleValuePairSet *avList, RTI::AttributeHandle handle)
bool needMass(const MyEntityStateRep &stateRep, const MyEntityStateRep &asSeenByRemote)
void configFomMapper(DtFomMapper *mapper)

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)