MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
disconnectMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1998 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: disconnectMsg.h,v $ $Revision: 1.6 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtDisconnectMsg_H_
13 #define DtDisconnectMsg_H_
14 
15 #include "connectMsg.h"
16 
17 class DtConnectionMgr;
18 class DtDisconnectMsg;
19 typedef void (*DtDisconnectCb)(const DtDisconnectMsg& inter, void* usr);
20 
22 {
23 public:
24 
26  DtDisconnectMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
27 
29  DtDisconnectMsg(const DtNetConnectMsg* netRep,
30  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
31 
33  DtDisconnectMsg(unsigned long handle,
34  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
35 
37  virtual ~DtDisconnectMsg();
38 
40  virtual DtRtiMsg* clone(bool copy = true) const;
41 
42 public:
43 
45  static DtRtiMsg* create(const DtNetMsgHeader* initial,
46  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
47 
48  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
49 
51  static void addCallback(DtConnectionMgr* conn,
52  DtDisconnectCb cb, void* usr, bool isMomCallback=false);
53  static void removeCallback(DtConnectionMgr* conn,
54  DtDisconnectCb cb, void* usr, bool isMomCallback=false);
55 
56 protected:
57 
60 
61 protected:
62 
63 };
64 
65 #endif
66 
DtRtiMsgKind
Definition: rtiMsgKind.h:9
Definition: netRtiMsgHdr.h:23
static void removeCallback(DtConnectionMgr *conn, DtConnectCb cb, void *usr, bool isMomCallback=false)
static DtRtiMsg * create(const DtNetMsgHeader *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
Creator.
virtual DtRtiMsgKind internalDtRtiMsgKind()
Returns the kind of an Connect Msg.
static void addCallback(DtConnectionMgr *conn, DtConnectCb cb, void *usr, bool isMomCallback=false)
Callback management.
Instances of DtConnectionMgr manage the communication objects that the RTI will use to either communi...
Definition: connectMgr.h:60
DtRtiMsg is the base class for messages between RTI components.
Definition: rtiMsg.h:45
Definition: netDesgFedMsg.h:19
Definition: connectMsg.h:25
Definition: disconnectMsg.h:21
#define DT_DLL_LRC
Definition: rtiMsConfig.h:126
virtual DtRtiMsg * clone(bool copy=true) const
Return a copy/empty object of the same type as this.
void(* DtDisconnectCb)(const DtDisconnectMsg &inter, void *usr)
Definition: disconnectMsg.h:19

Document ID: Generated on Mon Sep 7 15:40:32 EDT 2020 from SVN revision 217499
Copyright © 2005-2020 MAK Technologies Inc. All Rights Reserved (www.mak.com)