MAK RTIspy API Documentation for HLA Evolved
 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 

Document ID: Generated on Mon Jul 9 10:30:41 EDT 2018 from SVN revision 190224
Copyright © 2005-2018 VT MÄK Inc. All Rights Reserved (www.mak.com)