MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
unpubIntMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1998 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: unpubIntMsg.h,v $ $Revision: 1.14 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtUnpubInterMsg_H_
13 #define DtUnpubInterMsg_H_
14 
15 #include "rtiMsg.h"
16 #include "netPubIntMsg.h"
17 
19 class DtConnectionMgr;
20 class DtUnpubInterMsg;
21 typedef void (*DtUnpubInterCb)(const DtUnpubInterMsg& inter, void* usr);
22 
24 {
25 public:
26 
28  DtUnpubInterMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
29 
31  DtInteractionClassHandle theInter,
32  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
33 
35  DtUnpubInterMsg(const DtNetUnpubInterMsg* netRepMsg,
36  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
37 
39  virtual ~DtUnpubInterMsg();
40 
42  virtual DtRtiMsg* clone(bool copy = true) const;
43 
45  virtual void set(DtInteractionClassHandle theInter);
46 
48  virtual void setHandle(DtInteractionClassHandle hand);
49  virtual DtInteractionClassHandle handle() const;
50 
52  virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
53 
54 public:
55 
57  static DtRtiMsg* create(const DtNetMsgHeader* initial,
58  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
59 
61  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
62 
64  static void addCallback(DtConnectionMgr* conn,
65  DtUnpubInterCb cb, void* usr);
66  static void removeCallback(DtConnectionMgr* conn,
67  DtUnpubInterCb cb, void* usr);
68 
69 protected:
70 
72  virtual DtNetUnpubInterMsg* netUnpubInterMsg();
73  virtual const DtNetUnpubInterMsg* netUnpubInterMsg() const;
74 
77 
79  virtual int minSize() const;
80 
82  virtual DtUnpubInterMsg* self() const;
83 };
84 
85 
87 {
88  return const_cast<DtUnpubInterMsg*>( this );
89 }
90 
91 #endif
92 

Document ID: Generated on Wed Mar 11 20:26:49 EDT 2015 from SVN revision 150939
Copyright © 2005-2015 VT MÄK Inc. All Rights Reserved (www.mak.com)