VR-Forces Development_Version Class Documentation
 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) 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 Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)