VR-Link API Documentation for DIS
hSoldierEnc.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 1992-2010 VT MAK
00003 ** All rights reserved.
00004 *********************************************************************/
00005 
00006 
00007 #ifndef DtSoldierEncoder_H_
00008 #define DtSoldierEncoder_H_
00009 
00010 #if DtHLA 
00011 
00012 #include "hMilEntEnc.h"
00013 #include "entitySR.h"
00014 
00018 
00023 
00024 class DT_DLL_VL DtSoldierEncoder : public DtMilitaryEntityEncoder
00025 {
00026 public:
00027 
00029    DtSoldierEncoder(
00030       DtExerciseConn* exConn,
00031       DtObjClassDesc* classDesc);
00032 
00034    virtual ~DtSoldierEncoder();
00035 
00037    DtSoldierEncoder(const DtSoldierEncoder& orig);
00038 
00040    DtSoldierEncoder& operator=(const DtSoldierEncoder& orig);
00041 
00042 public:
00043 
00046    static DtHlaStateEncoder* create(
00047       DtExerciseConn* exConn,
00048       DtObjClassDesc* classDesc);
00049 
00050 protected:
00051 
00053    DtDECLARE_ENTITY_ATTR_CHECKER(PrimaryWeaponState); 
00054    DtDECLARE_ENTITY_ATTR_CHECKER(SecondaryWeaponState);
00055 
00057    DtDECLARE_ENTITY_ATTR_ENCODER(PrimaryWeaponState); 
00058    DtDECLARE_ENTITY_ATTR_ENCODER(SecondaryWeaponState);
00059 };
00060 
00066 #define DtDEFINE_SIMPLE_SOLDIER_ATTR_ENCODER( \
00067    attrName, netType, inspector) \
00068    DtDEFINE_SIMPLE_ATTR_ENCODER(DtSoldierEncoder, \
00069       DtEntityStateRepository, \
00070       attrName, netType, inspector)
00071 
00077 #define DtDEFINE_SIMPLE_SOLDIER_ATTR_CHECKER( \
00078    attrName, inspector) \
00079    DtDEFINE_SIMPLE_ATTR_CHECKER(DtSoldierEncoder, \
00080       DtEntityStateRepository, \
00081       attrName, inspector)
00082 
00083 #endif
00084 #endif
00085 

Document ID: Generated on Mon May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)