VR-Forces 4.0.4 Class Documentation
examples/addAttr/addAttrSim/configFomMap.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2004 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: configFomMap.h,v $ $Revision: 1.4 $ $State: Exp $
00007 *******************************************************************************/
00008 
00009 #ifndef configFomMapper_H_
00010 #define configFomMapper_H_ 1
00011 
00012 #if DtHLA
00013 
00014 #include <vl/fomMapper.h>
00015 #include "myEsr.h"
00016 
00017 //This function registers new encoding, decoding, and checking functions with
00018 //a FOM Mapper for the new attribute of the "BaseEntity" object class called
00019 //"Mass". 
00020 
00021 void configFomMapper(DtFomMapper* mapper);
00022 
00023 //The encoding, decoding and checking functions that configFomMapper
00024 //registers:
00025 
00026 //Encoding function to be used for the "Mass" attribute.
00027 void encodeMass(const MyEntityStateRep& stateRep,
00028    RTI::AttributeHandleValuePairSet* avList,
00029    RTI::AttributeHandle handle);
00030 
00031 //Decoding function to be used for the "Mass" attribute.
00032 void decodeMass(MyEntityStateRep* stateRep,
00033    const RTI::AttributeHandleValuePairSet& avlist,
00034    int pairSetIndex);
00035 
00036 //Checking function to be used for the "Mass" attribute (checks whether
00037 //update condition has been met).
00038 bool needMass(
00039    const MyEntityStateRep& stateRep,
00040    const MyEntityStateRep& asSeenByRemote);
00041 
00042 #endif
00043 #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)