MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
pubInterMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1998 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: pubInterMsg.h,v $ $Revision: 1.14 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtPubInterMsg_H_
13 #define DtPubInterMsg_H_
14 
15 #include "rtiMsg.h"
16 #include "netPubIntMsg.h"
17 
18 class DtConnectionMgr;
19 class DtPubInterMsg;
20 typedef void (*DtPubInterCb)(const DtPubInterMsg& inter, void* usr);
21 
23 {
24 public:
25 
27  DtPubInterMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
28 
30  DtInteractionClassHandle theInter,
31  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
32 
34  DtPubInterMsg(const DtNetPubInterMsg* netRepMsg,
35  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
36 
38  virtual ~DtPubInterMsg();
39 
41  virtual DtRtiMsg* clone(bool copy = true) const;
42 
44  virtual void set(DtInteractionClassHandle theInter);
45 
47  virtual void setHandle(DtInteractionClassHandle hand);
48  virtual DtInteractionClassHandle handle() const;
49 
51  virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
52 
53 public:
54 
56  static DtRtiMsg* create(const DtNetMsgHeader* initial,
57  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
58 
60  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
61 
63  static void addCallback(DtConnectionMgr* conn,
64  DtPubInterCb cb, void* usr);
65  static void removeCallback(DtConnectionMgr* conn,
66  DtPubInterCb cb, void* usr);
67 
68 protected:
69 
71  virtual DtNetPubInterMsg* netPubInterMsg();
72  virtual const DtNetPubInterMsg* netPubInterMsg() const;
73 
76 
78  virtual int minSize() const;
79 
81  virtual DtPubInterMsg* self() const;
82 };
83 
84 
86 {
87  return const_cast<DtPubInterMsg*>( this );
88 }
89 
90 #endif
91 
DtRtiMsgKind
Definition: rtiMsgKind.h:9
Definition: netRtiMsgHdr.h:23
Definition: fedTimeFactory.h:73
virtual void printData(DtLogicalTimeFactory *logicalTimeFactory) const
Definition: netPubIntMsg.h:19
DtHandle DtInteractionClassHandle
Definition: internalTypes.h:52
virtual DtPubInterMsg * self() const
Casts away const-ness.
Definition: pubInterMsg.h:85
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
virtual DtRtiMsg * clone(bool copy=true) const =0
Return a copy/empty object of the same type as this.
virtual DtRtiMsgKind internalDtRtiMsgKind()=0
Definition: pubInterMsg.h:22
#define DT_DLL_LRC
Definition: rtiMsConfig.h:155
void(* DtPubInterCb)(const DtPubInterMsg &inter, void *usr)
Definition: pubInterMsg.h:20

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)