MAK RTIspy API Documentation for HLA Evolved
deleteRegMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2001 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: deleteRegMsg.h,v $ $Revision: 1.14 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtDeleteRegMsg_H_
13 #define DtDeleteRegMsg_H_
14 #ifdef DDM
15 
16 #include "rtiMsg.h"
17 #include "netDelRegMsg.h"
18 #include "region.h"
19 
20 class DtConnectionMgr;
21 class DtDeleteRegMsg;
22 typedef void (*DtDeleteRegCb)(const DtDeleteRegMsg& msg, void* usr);
23 
24 class DT_DLL_LRC DtDeleteRegMsg : public DtRtiMsg
25 {
26 public:
27 
29  DtDeleteRegMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
30 
32  DtDeleteRegMsg(DtRegionHandle handleValue,
33  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
34 
36  DtDeleteRegMsg(const DtNetDeleteRegMsg* netRepMsg,
37  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
38 
40  virtual ~DtDeleteRegMsg();
41 
43  virtual DtRtiMsg* clone(bool copy = true) const;
44 
46  virtual void set(DtRegionHandle handleValue);
47 
49  virtual void setRegionHandle(DtRegionHandle handleValue);
50  virtual DtRegionHandle regionHandle() const;
51 
53  virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
54 
55 public:
56 
58  static DtRtiMsg* create(const DtNetMsgHeader* initial,
59  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
60 
62  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
63 
65  static void addCallback(DtConnectionMgr *conn,
66  DtDeleteRegCb cb, void *usr);
67  static void removeCallback(DtConnectionMgr *conn,
68  DtDeleteRegCb cb, void *usr);
69 
70 protected:
71 
73  virtual DtNetDeleteRegMsg* netDeleteRegMsg();
74  virtual const DtNetDeleteRegMsg* netDeleteRegMsg() const;
75 
78 
80  virtual int minSize() const;
81 
83  virtual DtDeleteRegMsg* self() const;
84 };
85 
86 inline DtDeleteRegMsg* DtDeleteRegMsg::self() const
87 {
88  return const_cast<DtDeleteRegMsg*>( this );
89 }
90 
91 #endif
92 #endif

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)