VR-Forces 4.10 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) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
6 #pragma once
7 
8 #if DtHLA
9 
10 #include <vl/fomMapper.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  {
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
Contains the MyEntityStateRepInterceptor (and creator) class declaration.
void decodeMass(MyEntityStateRep *stateRep, const RTI::AttributeHandleValuePairSet &avlist, int pairSetIndex)
void encodeMass(const MyEntityStateRep &stateRep, RTI::AttributeHandleValuePairSet *avList, RTI::AttributeHandle handle)
bool needMass(const MyEntityStateRep &stateRep, const MyEntityStateRep &asSeenByRemote)
#define DT_PROTOCOL_NAMESPACE
Make VR-Vantage VRLink code export with library #ifdef DL_DLL_IGCONVRLINK #undef DL_DLL_IGCONVRLINK #...
Definition: export.h:32
void configFomMapper(DtFomMapper *mapper)
Interceptor for VR-Link.
Definition: MyEntityStateRepInterceptor.h:23

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)