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

Document ID: Generated on Fri Mar 14 19:08:55 EDT 2014 from SVN revision 137085
Copyright © 2005-2014 VT MÄK Inc. All Rights Reserved (www.mak.com)