VR-Forces 4.0.4 Class Documentation
examples/exampleFomMapper/configFomMap.h
Go to the documentation of this file.
00001 /****************************************************************************** 
00002 ** Copyright (c) 2010 MAK Technologies, Inc. 
00003 ** All rights reserved. 
00004 ******************************************************************************/ 
00005 
00006 #pragma once
00007 
00008 #if DtHLA
00009 
00010 #include <vl/fomMapper.h>
00011 #include "MyEntityStateRepInterceptor.h"
00012 
00013 // This function registers new encoding, decoding, and checking functions with
00014 // a FOM Mapper for the new attribute of the "BaseEntity" object class called
00015 // "Mass".  It also registers encoding and decoding functions for a new
00016 // parameter of the "WeaponFire" interaction class called "Temperature".
00017 void configFomMapper(DtFomMapper* mapper);
00018 
00019 // The encoding, decoding and checking functions that configFomMapper
00020 // registers:
00021 
00022 namespace makVrv
00023 {
00024    namespace DT_PROTOCOL_NAMESPACE
00025    {
00026       class MyEntityStateRepInterceptor;
00027    }
00028 }
00029 
00030 // Encoding function to be used for the "Mass" attribute.
00031 void encodeMass(const DtStateRepository& stateRep,
00032    RTI::AttributeHandleValuePairSet* avList,
00033    RTI::AttributeHandle handle);
00034 
00035 // Decoding function to be used for the "Mass" attribute.
00036 void decodeMass(DtStateRepository* stateRep,
00037    const RTI::AttributeHandleValuePairSet& avlist,
00038    int pairSetIndex);
00039 
00040 // Checking function to be used for the "Mass" attribute (checks whether
00041 // update condition has been met).
00042 bool needMass(  
00043    const DtStateRepository& stateRep,
00044    const DtStateRepository& asSeenByRemote);
00045 
00046 #endif

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)