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 

Document ID: Generated on Mon Jul 9 10:30:41 EDT 2018 from SVN revision 190224
Copyright © 2005-2018 VT MÄK Inc. All Rights Reserved (www.mak.com)