VR-Link API Documentation for HLA 1516
hEmitterSysDec.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 DtEmitterSystemDecoder_H_
00010 #define DtEmitterSystemDecoder_H_
00011 
00012 
00013 #include "hBaseEmbedDec.h"
00014 
00018 
00019 class DT_DLL_VL DtEmitterSystemRepository;
00020 
00023 #define DtDECLARE_EMITTERSYS_ATTR_DECODER(attrName) \
00024    DtDECLARE_ATTR_DECODER(DtEmitterSystemRepository, attrName) 
00025 
00030 
00031 class DT_DLL_VL DtEmitterSystemDecoder : public DtBaseEmbeddedSystemDecoder
00032 {
00033 public:
00034 
00036    DtEmitterSystemDecoder(
00037       DtExerciseConn* exConn,
00038       DtObjClassDesc* classDesc);
00039 
00041    virtual ~DtEmitterSystemDecoder();
00042 
00044    DtEmitterSystemDecoder(const DtEmitterSystemDecoder& orig);
00045 
00047    DtEmitterSystemDecoder& operator=(const DtEmitterSystemDecoder& orig);
00048 
00049 public:
00050 
00052    static DtHlaStateDecoder* create(
00053       DtExerciseConn* exConn,
00054       DtObjClassDesc* classDesc);
00055 
00056 protected:
00057 
00061    void addMyDecoders();
00062 
00065    DtDECLARE_EMITTERSYS_ATTR_DECODER(EmitterFunction);
00066    DtDECLARE_EMITTERSYS_ATTR_DECODER(EmitterName);
00067    DtDECLARE_EMITTERSYS_ATTR_DECODER(EmitterNumber);
00068    DtDECLARE_EMITTERSYS_ATTR_DECODER(EventID);
00070    DtDECLARE_EMITTERSYS_ATTR_DECODER(EmitterFunctionCode);
00071    DtDECLARE_EMITTERSYS_ATTR_DECODER(EmitterType);
00072    DtDECLARE_EMITTERSYS_ATTR_DECODER(EmitterIndex);
00073    DtDECLARE_EMITTERSYS_ATTR_DECODER(EventIdentifier);
00074 };
00075 
00081 #define DtDEFINE_SIMPLE_EMITTERSYS_ATTR_DECODER_WITH_CAST( \
00082    attrName, netType, mutator, castExpr) \
00083    DtDEFINE_SIMPLE_ATTR_DECODER_WITH_CAST( \
00084       DtEmitterSystemDecoder, DtEmitterSystemRepository, \
00085       attrName, netType, mutator, castExpr)
00086 
00087 #define DtDEFINE_SIMPLE_EMITTERSYS_ATTR_DECODER( \
00088    attrName, netType, inspector) \
00089    DtDEFINE_SIMPLE_EMITTERSYS_ATTR_DECODER_WITH_CAST( \
00090       attrName, netType, inspector, (netType))
00091 
00092 #endif   //DtEmitterSystemDecoder_H_
00093 
00094 #endif   //DtHLA
00095 

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)