MAK RTIspy API Documentation for HLA Evolved
 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 

Document ID: Generated on Fri Sep 27 00:57:56 EDT 2019 from SVN revision 201708
Copyright © 2005-2018 VT MÄK Inc. All Rights Reserved (www.mak.com)