VR-Link API Documentation for HLA 1.3
hMilEntEnc.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 DtMilitaryEntityEncoder_H_
00008 #define DtMilitaryEntityEncoder_H_
00009 
00010 #if DtHLA 
00011 
00012 #include "hPhysEntEnc.h"
00013 #include "entitySR.h"
00014 
00018 
00024 
00025 class DT_DLL_VL DtMilitaryEntityEncoder : public DtPhysicalEntityEncoder
00026 {
00027 public:
00028 
00030    DtMilitaryEntityEncoder(
00031       DtExerciseConn* exConn,
00032       DtObjClassDesc* classDesc);
00033 
00035    virtual ~DtMilitaryEntityEncoder();
00036 
00038    DtMilitaryEntityEncoder(const DtMilitaryEntityEncoder& orig);
00039 
00041    DtMilitaryEntityEncoder& operator=(const DtMilitaryEntityEncoder& orig);
00042 
00043 public:
00044 
00047    static DtHlaStateEncoder* create(
00048       DtExerciseConn* exConn,
00049       DtObjClassDesc* classDesc);
00050 
00051 protected:
00052 
00054    DtDECLARE_ENTITY_ATTR_CHECKER(AlternateEntityType);
00055    DtDECLARE_ENTITY_ATTR_CHECKER(CamouflageType);
00056    DtDECLARE_ENTITY_ATTR_CHECKER(FirePowerDisabled);
00057    DtDECLARE_ENTITY_ATTR_CHECKER(ForceID);
00058    DtDECLARE_ENTITY_ATTR_CHECKER(IsConcealed);
00059 
00061    DtDECLARE_ENTITY_ATTR_ENCODER(AlternateEntityType);
00062    DtDECLARE_ENTITY_ATTR_ENCODER(CamouflageType);
00063    DtDECLARE_ENTITY_ATTR_ENCODER(FirePowerDisabled);
00064    DtDECLARE_ENTITY_ATTR_ENCODER(ForceID);
00065    DtDECLARE_ENTITY_ATTR_ENCODER(IsConcealed);
00066 };
00067 
00073 #define DtDEFINE_SIMPLE_MIL_ENTITY_ATTR_ENCODER( \
00074    attrName, netType, inspector) \
00075    DtDEFINE_SIMPLE_ATTR_ENCODER(DtMilitaryEntityEncoder, \
00076       DtEntityStateRepository, \
00077       attrName, netType, inspector)
00078 
00084 #define DtDEFINE_SIMPLE_MIL_ENTITY_ATTR_CHECKER( \
00085    attrName, inspector) \
00086    DtDEFINE_SIMPLE_ATTR_CHECKER(DtMilitaryEntityEncoder, \
00087       DtEntityStateRepository, \
00088       attrName, inspector)
00089 
00090 #endif
00091 #endif
00092 

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)