VR-Link API Documentation for DIS
hMinefldObjDec.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 1992-2010 VT MAK
00003 ** All rights reserved.
00004 *********************************************************************/
00005 
00006 
00007 #if DtHLA 
00008 
00009 #ifndef hMinefldObjDec_H_
00010 #define hMinefldObjDec_H_
00011 
00012 
00013 #include "hArealObjDec.h"
00014 
00018 
00019 class DT_DLL_VL DtArealObjectRepository;
00020 
00023 #define DtDECLARE_MINE_FIELD_OBJ_ATTR_DECODER(attrName) \
00024    DtDECLARE_ATTR_DECODER(DtArealObjectRepository, attrName) 
00025 
00030 
00031 class DT_DLL_VL DtMinefieldObjectDecoder : public DtArealObjectDecoder
00032 {
00033 public:
00034 
00036    DtMinefieldObjectDecoder(
00037       DtExerciseConn* exConn,
00038       DtObjClassDesc* classDesc);
00039 
00041    virtual ~DtMinefieldObjectDecoder();
00042 
00044    DtMinefieldObjectDecoder(const DtMinefieldObjectDecoder& orig);
00045 
00047    DtMinefieldObjectDecoder& operator=
00048       (const DtMinefieldObjectDecoder& orig);
00049 
00050 public:
00051 
00053    static DtHlaStateDecoder* create(
00054       DtExerciseConn* exConn,
00055       DtObjClassDesc* classDesc);
00056 
00057 protected:
00060    DtDECLARE_MINE_FIELD_OBJ_ATTR_DECODER(BreachedStatus);
00061    DtDECLARE_MINE_FIELD_OBJ_ATTR_DECODER(MineCount);
00062 };
00063 
00069 #define DtDEFINE_SIMPLE_MINE_FIELD_OBJ_ATTR_DECODER_WITH_CAST( \
00070    attrName, netType, mutator, castExpr) \
00071    DtDEFINE_SIMPLE_ATTR_DECODER_WITH_CAST( \
00072       DtMinefieldObjectDecoder, DtArealObjectRepository, \
00073       attrName, netType, mutator, castExpr)
00074 
00075 #define DtDEFINE_SIMPLE_MINE_FIELD_OBJ_ATTR_DECODER( \
00076    attrName, netType, inspector) \
00077    DtDEFINE_SIMPLE_MINE_FIELD_OBJ_ATTR_DECODER_WITH_CAST( \
00078       attrName, netType, inspector, (netType))
00079 
00080 #endif   //hMinefldObjDec_H_
00081 
00082 #endif   //DtHLA
00083 

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)