MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
federationShadowShutdownMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2022 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
7 
8 #pragma once
9 
10 #include "rtiMsg.h"
12 
13 class DtConnectionMgr;
15 typedef void (*DtFederationShadowShutdownCb)(const DtFederationShadowShutdownMsg& inter, void* usr);
16 
18 {
19 public:
20 
22  static const DtString theShutDownStatement;
23 
25  static const DtString theReadyStatement;
26 
28  DtFederationShadowShutdownMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
29 
31  DtFederationShadowShutdownMsg(const DtNetFederationShadowShutdownMsg* netRep, DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
32 
34  DtFederationShadowShutdownMsg(DtHandle handle, const MAKRti::DtString& name, DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
35 
38 
40  virtual DtRtiMsg* clone(bool copy = true) const;
41 
43  virtual void set(DtHandle handle, const MAKRti::DtString& name);
44 
46  virtual DtHandle federationHandle() const;
47  virtual void setFederationHandle(DtHandle handle);
48 
50  virtual void setFederationName(const MAKRti::DtString& name);
51  virtual MAKRti::DtString federationName() const;
52 
54  virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
55 
56 public:
57 
59  static DtRtiMsg* create(const DtNetMsgHeader* initial, DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
60 
61  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
62 
64  static void addCallback(DtConnectionMgr* conn, DtFederationShadowShutdownCb cb, void* usr, bool isMomCallback=false);
65  static void removeCallback(DtConnectionMgr* conn, DtFederationShadowShutdownCb cb, void* usr, bool isMomCallback=false);
66 
67 protected:
68 
70  virtual DtNetFederationShadowShutdownMsg* netFederationShadowShutdownMsg();
71  virtual const DtNetFederationShadowShutdownMsg* netFederationShadowShutdownMsg() const;
72 
75 
77  virtual char* federationNamePtr();
78  virtual const char* federationNamePtr() const;
79  virtual int federationNameSize() const;
80 
82  virtual int minSize() const;
83 
85  virtual DtFederationShadowShutdownMsg* self() const;
86 
87 protected:
88 
89 };
90 
92 {
93  return const_cast<DtFederationShadowShutdownMsg*>(this);
94 }
Definition: federationShadowShutdownMsg.h:17
DtRtiMsgKind
Definition: rtiMsgKind.h:9
Definition: netRtiMsgHdr.h:23
Definition: fedTimeFactory.h:73
virtual void printData(DtLogicalTimeFactory *logicalTimeFactory) const
static const DtString theShutDownStatement
String indicating federation shadow is shutting down.
Definition: federationShadowShutdownMsg.h:22
Definition: netFederationShadowShutdownMsg.h:15
Instances of DtConnectionMgr manage the communication objects that the RTI will use to either communi...
Definition: connectMgr.h:67
DtRtiMsg is the base class for messages between RTI components.
Definition: rtiMsg.h:34
virtual DtFederationShadowShutdownMsg * self() const
Casts away const-ness.
Definition: federationShadowShutdownMsg.h:91
virtual DtRtiMsg * clone(bool copy=true) const =0
Return a copy/empty object of the same type as this.
virtual DtRtiMsgKind internalDtRtiMsgKind()=0
void(* DtFederationShadowShutdownCb)(const DtFederationShadowShutdownMsg &inter, void *usr)
Definition: federationShadowShutdownMsg.h:15
unsigned long DtHandle
The internal types.
Definition: internalTypes.h:41
#define DT_DLL_LRC
Definition: rtiMsConfig.h:155
static const DtString theReadyStatement
String indicating success to create the federation shadow.
Definition: federationShadowShutdownMsg.h:25

Document ID: Generated on Sun Jul 20 16:15:30 EDT 2025 from SVN revision 277985
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)