MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
deleteMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1998 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: deleteMsg.h,v $ $Revision: 1.18 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtDeleteMsg_H_
13 #define DtDeleteMsg_H_
14 
15 #include "rtiMsConfig.h"
16 #include "rtiMsg.h"
17 
18 class DtConnectionMgr;
19 class DtDeleteMsg;
20 typedef void (*DtDeleteCb)(const DtDeleteMsg& inter, void* usr);
21 
22 
25 {
26 public:
27 
29  DtDeleteMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
30 
32  virtual ~DtDeleteMsg();
33 
35  virtual void setId(DtObjectInstanceHandle id) = 0;
36  virtual DtObjectInstanceHandle id() const = 0;
37 
39 #ifdef DtIFSPEC1516
40  virtual void setTag(rti1516::VariableLengthData const& tag);
41  virtual rti1516::VariableLengthData const& tag() const;
42 #elif defined(DtIFSPEC1516E)
43  virtual void setTag(rti1516e::VariableLengthData const& tag);
44  virtual rti1516e::VariableLengthData const& tag() const;
45 #else
46  virtual void setTag(char const * tag);
47  virtual char const * tag() const;
48 #endif
49 
50 protected:
51 
53  virtual void setTagSize(int size) = 0;
54  virtual int tagSize() const = 0;
55 
57  virtual char* tagPtr() = 0;
58 
60  virtual int tagFieldSize() const;
61 
63  virtual DtDeleteMsg* self() const;
64 
65 protected:
66 #ifdef DtIFSPEC1516
68 #elif defined(DtIFSPEC1516E)
69  rti1516e::VariableLengthData* myTag;
70 #else
71  char* myTag;
72 #endif
73 };
74 
75 
77 {
78  return const_cast<DtDeleteMsg*>( this );
79 }
80 
81 #endif
82 
virtual DtDeleteMsg * self() const
Casts away const-ness.
Definition: deleteMsg.h:76
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
DtHandle DtObjectInstanceHandle
Definition: internalTypes.h:33
void(* DtDeleteCb)(const DtDeleteMsg &inter, void *usr)
Definition: deleteMsg.h:20
Definition: VariableLengthData.h:22
The Delete message class indicates a deleted RTI object.
Definition: deleteMsg.h:24
#define DT_DLL_LRC
Definition: rtiMsConfig.h:126
char * myTag
Definition: deleteMsg.h:71

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)