MAK RTIspy API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
desRespMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1998 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: desRespMsg.h,v $ $Revision: 1.16 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtDestroyResponseMsg_H_
13 #define DtDestroyResponseMsg_H_
14 
15 #include "rtiMsg.h"
16 #include "netRtiMsgHdr.h"
17 #include "netDeRespMsg.h"
18 
19 class DtConnectionMgr;
21 typedef void (*DtDestroyResponseCb)(const DtDestroyResponseMsg& inter, void* usr);
22 
24 {
29 };
30 
32 {
33 public:
34 
36  DtDestroyResponseMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
37 
38  DtDestroyResponseMsg(const char* fedExName,
40  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
41 
44  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
45 
47  virtual DtRtiMsg* clone(bool copy = true) const;
48 
50  virtual ~DtDestroyResponseMsg();
51 
53  virtual void set(const char* fedExName, DtDestroyResponseFlag flag);
54 
56  void setResponseFlag(DtDestroyResponseFlag flag);
57  DtDestroyResponseFlag responseFlag() const;
58 
60  virtual void setFullFedExName(const MAKRti::DtString& name);
61  virtual const MAKRti::DtString fullFedExName() const;
62 
64  virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
65 
66 public:
67 
69  static DtRtiMsg* create(const DtNetMsgHeader* initial,
70  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
71 
73  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
74 
76  static void addCallback(DtConnectionMgr *conn,
77  DtDestroyResponseCb cb, void *usr);
78  static void removeCallback(DtConnectionMgr *conn,
79  DtDestroyResponseCb cb, void *usr);
80 
81 protected:
82 
84  virtual DtNetDestroyResponseMsg* netDestroyResponseMsg();
85  virtual const DtNetDestroyResponseMsg* netDestroyResponseMsg() const;
86 
89 
91  virtual int minSize() const;
92 
94  virtual DtDestroyResponseMsg* self() const;
95 };
96 
97 
99 {
100  return const_cast<DtDestroyResponseMsg*>( this );
101 }
102 
103 #endif
104 
Definition: desRespMsg.h:26
DtRtiMsgKind
Definition: rtiMsgKind.h:9
Definition: netRtiMsgHdr.h:23
DtDestroyResponseFlag
Definition: desRespMsg.h:23
Definition: fedTimeFactory.h:73
virtual void printData(DtLogicalTimeFactory *logicalTimeFactory) const
virtual DtDestroyResponseMsg * self() const
Casts away const-ness.
Definition: desRespMsg.h:98
Instances of DtConnectionMgr manage the communication objects that the RTI will use to either communi...
Definition: connectMgr.h:67
void(* DtDestroyResponseCb)(const DtDestroyResponseMsg &inter, void *usr)
Definition: desRespMsg.h:21
DtRtiMsg is the base class for messages between RTI components.
Definition: rtiMsg.h:34
Used as a invalid value while waiting for a response.
Definition: desRespMsg.h:28
Definition: desRespMsg.h:27
virtual DtRtiMsg * clone(bool copy=true) const =0
Return a copy/empty object of the same type as this.
virtual DtRtiMsgKind internalDtRtiMsgKind()=0
Definition: desRespMsg.h:31
Definition: netDeRespMsg.h:19
#define DT_DLL_LRC
Definition: rtiMsConfig.h:155
Definition: desRespMsg.h:25

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)