MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
deleteRoMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1998 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: deleteRoMsg.h,v $ $Revision: 1.10 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtDeleteRoMsg_H_
13 #define DtDeleteRoMsg_H_
14 
15 #include "deleteMsg.h"
16 #include "netDeleteMsg.h"
17 
18 class DtDeleteRoMsg;
19 typedef void (*DtDeleteRoCb)(const DtDeleteRoMsg& inter, void* usr);
20 
24 {
25 public:
26 
28  DtDeleteRoMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
29 
33  DtRtiApiTagConstRef theTag,
34  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
35 
37  DtDeleteRoMsg(const DtNetDeleteMsg* netRepMsg,
38  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
39 
41  virtual ~DtDeleteRoMsg();
42 
44  virtual DtRtiMsg* clone(bool copy = true) const;
45 
47  virtual void set(DtObjectInstanceHandle theObj, DtRtiApiTagConstRef theTag, bool adjustBufferSize = true);
48 
50  virtual void setId(DtObjectInstanceHandle id);
51  virtual DtObjectInstanceHandle id() const;
52 
54  virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
55 
56 public:
57 
59  static DtRtiMsg* create(const DtNetMsgHeader* initial,
60  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
61 
63  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
64 
66  static void addCallback(DtConnectionMgr *conn,
67  DtDeleteRoCb cb, void *usr);
68  static void removeCallback(DtConnectionMgr *conn,
69  DtDeleteRoCb cb, void *usr);
70 
71 protected:
72 
74  virtual DtNetDeleteMsg* netDeleteRoMsg();
75  virtual const DtNetDeleteMsg* netDeleteRoMsg() const;
76 
79 
81  virtual int minSize(DtRtiApiTagConstRef theTag = theDefaultTag) const;
82 
84  virtual void setTagSize(int size);
85  virtual int tagSize() const;
86 
88  virtual char* tagPtr();
89 
91  virtual DtDeleteRoMsg* selfRo() const;
92 };
93 
94 
96 {
97  return (DtDeleteRoMsg*) this;
98 }
99 
100 #endif
101 
Definition: netDeleteMsg.h:19
DtRtiMsgKind
Definition: rtiMsgKind.h:9
Definition: netRtiMsgHdr.h:23
virtual DtDeleteRoMsg * selfRo() const
Casts away const-ness.
Definition: deleteRoMsg.h:95
Definition: fedTimeFactory.h:73
virtual void printData(DtLogicalTimeFactory *logicalTimeFactory) const
virtual DtObjectInstanceHandle id() const =0
virtual void setId(DtObjectInstanceHandle id)=0
Set/Get handle.
DtRtiApiVariableLengthData const & DtRtiApiTagConstRef
Definition: rtiApiTypes.h:98
virtual char * tagPtr()=0
Returns pointer to the tag in the netMsg.
Instances of DtConnectionMgr manage the communication objects that the RTI will use to either communi...
Definition: connectMgr.h:67
DtRtiMsg is the base class for messages between RTI components.
Definition: rtiMsg.h:34
DtHandle DtObjectInstanceHandle
Definition: internalTypes.h:50
void(* DtDeleteRoCb)(const DtDeleteRoMsg &inter, void *usr)
Definition: deleteRoMsg.h:19
virtual DtRtiMsg * clone(bool copy=true) const =0
Return a copy/empty object of the same type as this.
virtual void setTagSize(int size)=0
Set/Get tag size.
virtual DtRtiMsgKind internalDtRtiMsgKind()=0
virtual int tagSize() const =0
The Delete message class indicates a deleted RTI object.
Definition: deleteMsg.h:24
#define DT_DLL_LRC
Definition: rtiMsConfig.h:155
Message for sending receive order delete.
Definition: deleteRoMsg.h:23

Document ID: Generated on Sun Jul 20 16:15:30 EDT 2025 from SVN revision 277985
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)