MAK RTIspy API Documentation for HLA 1.3
pubObjMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1998 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: pubObjMsg.h,v $ $Revision: 1.15 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtPubObjMsg_H_
13 #define DtPubObjMsg_H_
14 
15 #include "rtiMsg.h"
16 #include "netPubObjMsg.h"
17 #include "attrHandSet.h"
18 
20 class DtConnectionMgr;
21 class DtPubObjMsg;
22 typedef void (*DtPubObjCb)(const DtPubObjMsg& inter, void* usr);
23 
25 {
26 public:
27 
29  DtPubObjMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
30 
32  DtObjectClassHandle theObj,
33  const DtAttributeHandleSet& theSet,
34  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
35 
37  DtPubObjMsg(const DtNetPubObjMsg* netRepMsg,
38  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
39 
41  virtual ~DtPubObjMsg();
42 
44  virtual DtRtiMsg* clone(bool copy = true) const;
45 
47  virtual void set(
48  DtObjectClassHandle theObj,
49  const DtAttributeHandleSet& theSet);
50 
52  virtual void setObjectClassHandle(DtObjectClassHandle hand);
53  virtual DtObjectClassHandle objectClassHandle() const;
54 
56  virtual void setAttrHandles(const DtAttributeHandleSet& attrs);
57  virtual const DtAttributeHandleSet& attrHandles() const;
58 
60  virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
61 
62 public:
63 
65  static DtRtiMsg* create(const DtNetMsgHeader* initial,
66  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
67 
69  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
70 
72  static void addCallback(DtConnectionMgr* conn,
73  DtPubObjCb cb, void* usr);
74  static void removeCallback(DtConnectionMgr* conn,
75  DtPubObjCb cb, void* usr);
76 
77 protected:
78 
80  virtual DtNetPubObjMsg* netPubObjMsg();
81  virtual const DtNetPubObjMsg* netPubObjMsg() const;
82 
85 
87  virtual int minSize() const;
88 
90  virtual DtPubObjMsg* self() const;
91 
92 protected:
93 
94  int myDirty;
96 };
97 
98 
100 {
101  return const_cast<DtPubObjMsg*>( this );
102 }
103 
104 #endif
105 

Document ID: Generated on Tue May 7 16:26:47 EDT 2013 from SVN revision 126903
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)