MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
unsubIntMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1998 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: unsubIntMsg.h,v $ $Revision: 1.14 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtUnsubInterMsg_H_
13 #define DtUnsubInterMsg_H_
14 
15 #include "rtiMsg.h"
16 #include "netSubIntMsg.h"
17 
19 class DtConnectionMgr;
20 class DtUnsubInterMsg;
21 typedef void (*DtUnsubInterCb)(const DtUnsubInterMsg& inter, void* usr);
22 
24 {
25 public:
26 
28  DtUnsubInterMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
29 
31  DtInteractionClassHandle theInter,
32  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
33 
35  DtUnsubInterMsg(const DtNetUnsubInterMsg* netRepMsg,
36  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
37 
39  virtual ~DtUnsubInterMsg();
40 
42  virtual DtRtiMsg* clone(bool copy = true) const;
43 
45  virtual void set(DtInteractionClassHandle theInter, bool forSmartForwarding);
46 
48  virtual void setHandle(DtInteractionClassHandle hand);
49  virtual DtInteractionClassHandle handle() const;
50 
53  virtual void setForSmartForwarding(bool value);
54  virtual bool isForSmartForwarding() const;
55 
57  virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
58 
59 public:
60 
62  static DtRtiMsg* create(const DtNetMsgHeader* initial,
63  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
64 
66  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
67 
69  static void addCallback(DtConnectionMgr* conn,
70  DtUnsubInterCb cb, void* usr);
71  static void removeCallback(DtConnectionMgr* conn,
72  DtUnsubInterCb cb, void* usr);
73 
74 protected:
75 
77  virtual DtNetUnsubInterMsg* netUnsubInterMsg();
78  virtual const DtNetUnsubInterMsg* netUnsubInterMsg() const;
79 
82 
84  virtual int minSize() const;
85 
87  virtual DtUnsubInterMsg* self() const;
88 };
89 
90 
92 {
93  return const_cast<DtUnsubInterMsg*>( this );
94 }
95 
96 #endif
97 
DtRtiMsgKind
Definition: rtiMsgKind.h:9
Definition: netRtiMsgHdr.h:23
virtual DtUnsubInterMsg * self() const
Casts away const-ness.
Definition: unsubIntMsg.h:91
Definition: netSubIntMsg.h:19
Definition: fedTimeFactory.h:73
DtNetSubInterMsg DtNetUnsubInterMsg
Definition: unsubIntMsg.h:18
virtual void printData(DtLogicalTimeFactory *logicalTimeFactory) const
DtHandle DtInteractionClassHandle
Definition: internalTypes.h:52
Instances of DtConnectionMgr manage the communication objects that the RTI will use to either communi...
Definition: connectMgr.h:67
DtRtiMsg is the base class for messages between RTI components.
Definition: rtiMsg.h:34
Definition: unsubIntMsg.h:23
virtual DtRtiMsg * clone(bool copy=true) const =0
Return a copy/empty object of the same type as this.
virtual DtRtiMsgKind internalDtRtiMsgKind()=0
#define DT_DLL_LRC
Definition: rtiMsConfig.h:155
void(* DtUnsubInterCb)(const DtUnsubInterMsg &inter, void *usr)
Definition: unsubIntMsg.h:21

Document ID: Generated on Wed Jul 8 16:20:32 EDT 2026 from SVN revision 291616
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)