MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
federationShadowConnectMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2022 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
8 
9 #pragma once
10 
11 #include "rtiMsg.h"
12 #include <vlutil/vlUtil.h>
13 #include <vlutil/vlInetAddr.h>
15 
16 class DtConnectionMgr;
18 
19 typedef void (*DtRtiFederationShadowConnectCb)(const DtFederationShadowConnectMsg& inter, void* usr);
20 
22 {
23 public:
24 
26  DtFederationShadowConnectMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
27 
29  DtFederationShadowConnectMsg(const DtNetFederationShadowConnectMsg* netRep, DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
30 
32  DtFederationShadowConnectMsg(DtHandle connectionId, DtHandle federationHandle, const MAKRti::DtString& federationName,
33  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
34 
37 
39  virtual DtRtiMsg* clone(bool copy = true) const;
40 
42  virtual void set(DtHandle connectionId, DtHandle federationHandle, const MAKRti::DtString& federationName);
43 
45  virtual DtHandle connectionHandle() const;
46  virtual void setConnectionHandle(DtHandle handle);
47 
49  virtual DtHandle federationHandle() const;
50  virtual void setFederationHandle(DtHandle handle);
51 
53  virtual void setFederationName(const MAKRti::DtString& name);
54  virtual MAKRti::DtString federationName() const;
55 
57  virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
58 
59 public:
60 
62  static DtRtiMsg* create(const DtNetMsgHeader* initial, DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
63 
64  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
65 
67  static void addCallback(DtConnectionMgr* conn, DtRtiFederationShadowConnectCb cb, void* usr, bool isMomCallback=false);
68  static void removeCallback(DtConnectionMgr* conn, DtRtiFederationShadowConnectCb cb, void* usr, bool isMomCallback=false);
69 
70 protected:
71 
73  virtual DtNetFederationShadowConnectMsg* netFederationShadowConnectMsg();
74  virtual const DtNetFederationShadowConnectMsg* netFederationShadowConnectMsg() const;
75 
78 
80  virtual char* federationNamePtr();
81  virtual const char* federationNamePtr() const;
82  virtual int federationNameSize() const;
83 
85  virtual int minSize() const;
86 
88  virtual DtFederationShadowConnectMsg* self() const;
89 
90 protected:
91 
92 };
93 
95 {
96  return const_cast<DtFederationShadowConnectMsg*>( this );
97 }
DtRtiMsgKind
Definition: rtiMsgKind.h:9
Definition: netRtiMsgHdr.h:23
void(* DtRtiFederationShadowConnectCb)(const DtFederationShadowConnectMsg &inter, void *usr)
Definition: federationShadowConnectMsg.h:19
Definition: fedTimeFactory.h:73
virtual void printData(DtLogicalTimeFactory *logicalTimeFactory) const
Definition: federationShadowConnectMsg.h:21
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 DtRtiMsg * clone(bool copy=true) const =0
Return a copy/empty object of the same type as this.
virtual DtFederationShadowConnectMsg * self() const
Casts away const-ness.
Definition: federationShadowConnectMsg.h:94
virtual DtRtiMsgKind internalDtRtiMsgKind()=0
unsigned long DtHandle
The internal types.
Definition: internalTypes.h:41
#define DT_DLL_LRC
Definition: rtiMsConfig.h:155
Definition: netFederationShadowConnectMsg.h:15

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)