MAK RTIspy API Documentation for HLA Evolved
enableRegMsg.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 1998 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: enableRegMsg.h,v $ $Revision: 1.9 $ $State: Exp $
00007 *********************************************************************/
00008 
00011 
00012 #ifndef DtEnableRegulationMsg_H_
00013 #define DtEnableRegulationMsg_H_
00014 
00015 #ifdef DtTIME
00016 
00017 #include "timeTwoMsg.h"
00018 
00019 class DtConnectionMgr;
00020 class DtEnableRegulationMsg;
00021 typedef void (*DtEnableRegulationCb)(const DtEnableRegulationMsg& msg, void* usr);
00022 
00023 class DT_DLL_LRC DtEnableRegulationMsg : public DtTimeLookaheadMsg
00024 {
00025 public:
00026 
00028    DtEnableRegulationMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00029 
00031    DtEnableRegulationMsg(
00032 #ifdef DtIFSPEC1516
00033       rti1516::LogicalTime const & timeVal,
00034       rti1516::LogicalTimeInterval const & lookaheadVal,
00035 #elif defined(DtIFSPEC1516E)
00036       rti1516e::LogicalTime const & timeVal,
00037       rti1516e::LogicalTimeInterval const & lookaheadVal,
00038 #else
00039       RTI::FedTime const & timeVal,
00040       RTI::FedTime const & lookaheadVal,
00041 #endif
00042       DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00043 
00045    DtEnableRegulationMsg(const DtNetTimeLookaheadMsg* netRepMsg,
00046       DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00047 
00049    virtual ~DtEnableRegulationMsg();
00050 
00052    virtual DtRtiMsg* clone(bool copy = true) const; 
00053 
00054 public:
00055 
00057    static DtRtiMsg* create(const DtNetMsgHeader* initial,
00058       DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00059 
00061    static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00062 
00064    static void addCallback(DtConnectionMgr *conn,
00065       DtEnableRegulationCb cb, void *usr);
00066    static void removeCallback(DtConnectionMgr *conn,
00067       DtEnableRegulationCb cb, void *usr);
00068 
00069 protected:
00070    
00072    DtRtiMsgKind internalDtRtiMsgKind();
00073 
00074 };
00075 
00076 #endif
00077 #endif
00078 

Document ID: Generated on Thu Jun 14 14:15:04 EDT 2012 from SVN revision 116116
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)