MAK RTIspy API Documentation for HLA 4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
destroyMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1998 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: destroyMsg.h,v $ $Revision: 1.17 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtDestroyMsg_H_
13 #define DtDestroyMsg_H_
14 
15 #include "rtiMsg.h"
16 #include "netRtiMsgHdr.h"
17 
18 class DtConnectionMgr;
19 class DtDestroyMsg;
20 typedef void (*DtDestroyCb)(const DtDestroyMsg& inter, void* usr);
21 
23 {
24 public:
25 
27  char fullFedExName[64];
28 };
29 
31 {
32 public:
33 
35  DtDestroyMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
36 
37  DtDestroyMsg(const char* fedExName,
38  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
39 
41  DtDestroyMsg(const DtNetDestroyMsg* netRepMsg,
42  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
43 
45  virtual ~DtDestroyMsg();
46 
48  virtual DtRtiMsg* clone(bool copy = true) const;
49 
51  virtual void set(const char* fedExName);
52 
54  virtual void setFullFedExName(const MAKRti::DtString& name);
55  virtual const MAKRti::DtString fullFedExName() 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  DtDestroyCb cb, void* usr);
72  static void removeCallback(DtConnectionMgr* conn,
73  DtDestroyCb cb, void* usr);
74 
75 protected:
76 
78  virtual DtNetDestroyMsg* netDestroyMsg();
79  virtual const DtNetDestroyMsg* netDestroyMsg() const;
80 
83 
85  virtual int minSize() const;
86 
88  virtual DtDestroyMsg* self() const;
89 };
90 
91 
93 {
94  return const_cast<DtDestroyMsg*>( this );
95 }
96 
97 #endif
98 
DtRtiMsgKind
Definition: rtiMsgKind.h:9
Definition: netRtiMsgHdr.h:23
DtNetMsgHeader header
Definition: destroyMsg.h:26
Definition: fedTimeFactory.h:73
virtual void printData(DtLogicalTimeFactory *logicalTimeFactory) const
virtual DtDestroyMsg * self() const
Casts away const-ness.
Definition: destroyMsg.h:92
Definition: destroyMsg.h:22
Instances of DtConnectionMgr manage the communication objects that the RTI will use to either communi...
Definition: connectMgr.h:67
Definition: destroyMsg.h:30
DtRtiMsg is the base class for messages between RTI components.
Definition: rtiMsg.h:34
virtual DtRtiMsg * clone(bool copy=true) const =0
Return a copy/empty object of the same type as this.
virtual DtRtiMsgKind internalDtRtiMsgKind()=0
void(* DtDestroyCb)(const DtDestroyMsg &inter, void *usr)
Definition: destroyMsg.h:20
char fullFedExName[64]
Definition: destroyMsg.h:27
#define DT_DLL_LRC
Definition: rtiMsConfig.h:155

Document ID: Generated on Wed Jul 8 16:20:32 EDT 2026 from SVN revision 291616
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)