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

Document ID: Generated on Fri Sep 27 00:57:56 EDT 2019 from SVN revision 201708
Copyright © 2005-2018 VT MÄK Inc. All Rights Reserved (www.mak.com)