MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
unpubObjMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1998 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: unpubObjMsg.h,v $ $Revision: 1.15 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtUnpubObjMsg_H_
13 #define DtUnpubObjMsg_H_
14 
15 #include "rtiMsg.h"
16 #include "netUnPObjMsg.h"
17 
18 class DtConnectionMgr;
19 class DtUnpubObjMsg;
21 typedef void (*DtUnpubObjCb)(const DtUnpubObjMsg& inter, void* usr);
22 
24 {
25 public:
26 
28  DtUnpubObjMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
29 
31  DtObjectClassHandle theObj,
32  const DtAttributeHandleSet& theSet,
33  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
34 
36  DtUnpubObjMsg(const DtNetUnpubObjMsg* netRepMsg,
37  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
38 
40  virtual ~DtUnpubObjMsg();
41 
43  virtual DtRtiMsg* clone(bool copy = true) const;
44 
46  virtual void set(DtObjectClassHandle theObj,
47  const DtAttributeHandleSet& theSet);
48 
50  virtual void setObjectClassHandle(DtObjectClassHandle hand);
51  virtual DtObjectClassHandle objectClassHandle() const;
52 
54  virtual void setAttrHandles(const DtAttributeHandleSet& attrs);
55  virtual const DtAttributeHandleSet& attrHandles() const;
56 
58  virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
59 
60 public:
61 
63  static DtRtiMsg* create(const DtNetMsgHeader* initial,
64  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
65 
67  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
68 
70  static void addCallback(DtConnectionMgr* conn,
71  DtUnpubObjCb cb, void* usr);
72  static void removeCallback(DtConnectionMgr* conn,
73  DtUnpubObjCb cb, void* usr);
74 
75 protected:
76 
78  virtual DtNetUnpubObjMsg* netUnpubObjMsg();
79  virtual const DtNetUnpubObjMsg* netUnpubObjMsg() const;
80 
83 
85  virtual int minSize() const;
86 
88  virtual DtUnpubObjMsg* self() const;
89 
90 protected:
91 
92  int myDirty;
94 };
95 
96 
98 {
99  return const_cast<DtUnpubObjMsg*>( this );
100 }
101 
102 #endif
103 
DtRtiMsgKind
Definition: rtiMsgKind.h:9
Definition: netRtiMsgHdr.h:23
!DtIFSPEC1516
Definition: fedTimeFactory.h:190
virtual void printData(DtLogicalTimeFactory *logicalTimeFactory) const
DtHandle DtObjectClassHandle
Definition: internalTypes.h:31
Definition: attrHandSet.h:37
Instances of DtConnectionMgr manage the communication objects that the RTI will use to either communi...
Definition: connectMgr.h:60
DtRtiMsg is the base class for messages between RTI components.
Definition: rtiMsg.h:45
virtual DtUnpubObjMsg * self() const
Casts away const-ness.
Definition: unpubObjMsg.h:97
void(* DtUnpubObjCb)(const DtUnpubObjMsg &inter, void *usr)
Definition: unpubObjMsg.h:21
virtual DtRtiMsg * clone(bool copy=true) const =0
Return a copy/empty object of the same type as this.
DtAttributeHandleSet * myAttrs
Definition: unpubObjMsg.h:93
virtual DtRtiMsgKind internalDtRtiMsgKind()=0
int myDirty
Definition: unpubObjMsg.h:92
Definition: netUnPObjMsg.h:20
#define DT_DLL_LRC
Definition: rtiMsConfig.h:126
Definition: unpubObjMsg.h:23

Document ID: Generated on Thu May 11 15:55:32 EDT 2023 from SVN revision 254743
Copyright © 2005-2020 MAK Technologies Inc. All Rights Reserved (www.mak.com)