MAK RTIspy API Documentation for HLA 1516
resumeConMsg.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 1998 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: resumeConMsg.h,v $ $Revision: 1.9 $ $State: Exp $
00007 *********************************************************************/
00008 
00011 
00012 #ifndef DtResumeConstrainedMsg_H_
00013 #define DtResumeConstrainedMsg_H_
00014 
00015 #ifdef DtTIME
00016 
00017 #include "lbtsMsg.h"
00018 
00019 class DtConnectionMgr;
00020 class DtResumeConstrainedMsg;
00021 typedef void (*DtResumeConstrainedCb)(const DtResumeConstrainedMsg& msg, void* usr);
00022 
00023 class DT_DLL_LRC DtResumeConstrainedMsg : public DtLbtsMsg
00024 {
00025 public:
00026 
00028    DtResumeConstrainedMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00029 
00031    DtResumeConstrainedMsg(
00032       DtFederateHandle handle,
00033 #ifdef DtIFSPEC1516
00034       rti1516::LogicalTime const & lbtsVal,
00035       rti1516::LogicalTime const & lagLbtsVal,
00036 #elif defined(DtIFSPEC1516E)
00037       rti1516e::LogicalTime const & lbtsVal,
00038       rti1516e::LogicalTime const & lagLbtsVal,
00039 #else
00040       const RTI::FedTime& lbtsVal,
00041       const RTI::FedTime& lagLbtsVal,
00042 #endif
00043       DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00044 
00046    DtResumeConstrainedMsg(const DtNetLbts* netRepMsg,
00047       DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00048 
00050    virtual ~DtResumeConstrainedMsg();
00051 
00053    virtual DtRtiMsg* clone(bool copy = true) const; 
00054 
00056 #ifdef DtIFSPEC1516
00057    virtual void set(
00058       DtFederateHandle handle,
00059       rti1516::LogicalTime const & lbtsVal,
00060       rti1516::LogicalTime const & lagLbtsVal);
00061 #elif defined(DtIFSPEC1516E)
00062    virtual void set(
00063        DtFederateHandle handle,
00064        rti1516e::LogicalTime const & lbtsVal,
00065        rti1516e::LogicalTime const & lagLbtsVal);
00066 #else
00067    virtual void set(
00068       DtFederateHandle handle,
00069       RTI::FedTime const & lbtsVal,
00070       RTI::FedTime const & lagLbtsVal);
00071 #endif
00072 
00073 public:
00074 
00076    static DtRtiMsg* create(const DtNetMsgHeader* initial,
00077       DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00078 
00080    static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00081 
00083    static void addCallback(DtConnectionMgr *conn,
00084       DtResumeConstrainedCb cb, void *usr);
00085    static void removeCallback(DtConnectionMgr *conn,
00086       DtResumeConstrainedCb cb, void *usr);
00087 
00088 protected:
00089    
00091    DtRtiMsgKind internalDtRtiMsgKind();
00092 
00093 };
00094 
00095 #endif
00096 #endif
00097 

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)