VR-Link API Documentation for DIS
hLifeformEnc.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 DtLifeformEncoder_H_
00008 #define DtLifeformEncoder_H_
00009 
00010 #if DtHLA 
00011 
00012 #include "hPhysEntEnc.h"
00013 #include "entitySR.h"
00014 
00018 
00024 
00025 class DT_DLL_VL DtLifeformEncoder : public DtPhysicalEntityEncoder
00026 {
00027 public:
00028 
00030    DtLifeformEncoder(
00031       DtExerciseConn* exConn,
00032       DtObjClassDesc* classDesc);
00033 
00035    virtual ~DtLifeformEncoder();
00036 
00038    DtLifeformEncoder(const DtLifeformEncoder& orig);
00039 
00041    DtLifeformEncoder& operator=(const DtLifeformEncoder& orig);
00042 
00043 public:
00044 
00047    static DtHlaStateEncoder* create(
00048       DtExerciseConn* exConn,
00049       DtObjClassDesc* classDesc);
00050 
00051 protected:
00052 
00054    DtDECLARE_ENTITY_ATTR_CHECKER(FlashLightsOn);
00055    DtDECLARE_ENTITY_ATTR_CHECKER(StanceCode);
00056    DtDECLARE_ENTITY_ATTR_CHECKER(PrimaryWeaponState);
00057    DtDECLARE_ENTITY_ATTR_CHECKER(SecondaryWeaponState);
00058    DtDECLARE_ENTITY_ATTR_CHECKER(ComplianceState);
00059 
00061    DtDECLARE_ENTITY_ATTR_ENCODER(FlashLightsOn);
00062    DtDECLARE_ENTITY_ATTR_ENCODER(StanceCode);
00063    DtDECLARE_ENTITY_ATTR_ENCODER(PrimaryWeaponState);
00064    DtDECLARE_ENTITY_ATTR_ENCODER(SecondaryWeaponState);
00065    DtDECLARE_ENTITY_ATTR_ENCODER(ComplianceState);
00066 };
00067 
00073 #define DtDEFINE_SIMPLE_LIFEFORM_ATTR_ENCODER( \
00074    attrName, netType, inspector) \
00075    DtDEFINE_SIMPLE_ATTR_ENCODER( \
00076       DtLifeformEncoder, \
00077       DtEntityStateRepository, \
00078       attrName, netType, inspector)
00079 
00085 #define DtDEFINE_SIMPLE_LIFEFORM_ATTR_CHECKER( \
00086    attrName, inspector) \
00087    DtDEFINE_SIMPLE_ATTR_CHECKER( \
00088       DtLifeformEncoder, \
00089       DtEntityStateRepository, \
00090       attrName, inspector)
00091 
00092 #define DtDEFINE_LIFEFORM_LIGHT_ATTR_CHECKER(attrName, arg1) \
00093    DtDEFINE_LIGHT_ATTR_CHECKER(DtLifeformEncoder, attrName, arg1)
00094 
00095 #define DtDEFINE_LIFEFORM_LIGHT_ATTR_ENCODER(attrName, arg1) \
00096    DtDEFINE_LIGHT_ATTR_ENCODER(DtLifeformEncoder, attrName, arg1)
00097 
00098 #endif
00099 #endif
00100 

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)