MAK RTIspy API Documentation for HLA Evolved
disconnectMsg.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 1998 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: disconnectMsg.h,v $ $Revision: 1.6 $ $State: Exp $
00007 *********************************************************************/
00008 
00011 
00012 #ifndef DtDisconnectMsg_H_
00013 #define DtDisconnectMsg_H_
00014 
00015 #include "connectMsg.h"
00016 
00017 class DtConnectionMgr;
00018 class DtDisconnectMsg;
00019 typedef void (*DtDisconnectCb)(const DtDisconnectMsg& inter, void* usr);
00020 
00021 class DT_DLL_LRC DtDisconnectMsg : public DtConnectMsg
00022 {
00023 public:
00024 
00026    DtDisconnectMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00027 
00029    DtDisconnectMsg(const DtNetConnectMsg* netRep,
00030       DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00031 
00033    DtDisconnectMsg(unsigned long handle,
00034       DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00035 
00037    virtual ~DtDisconnectMsg();
00038 
00040    virtual DtRtiMsg* clone(bool copy = true) const; 
00041 
00042 public:
00043 
00045    static DtRtiMsg* create(const DtNetMsgHeader* initial,
00046       DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00047 
00048    static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
00049 
00051    static void addCallback(DtConnectionMgr* conn,
00052       DtDisconnectCb cb, void* usr, bool isMomCallback=false);
00053    static void removeCallback(DtConnectionMgr* conn,
00054       DtDisconnectCb cb, void* usr, bool isMomCallback=false);
00055 
00056 protected:
00057 
00059    virtual DtRtiMsgKind internalDtRtiMsgKind();
00060 
00061 protected:
00062 
00063 };
00064 
00065 #endif
00066 

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)