MAK RTIspy API Documentation for HLA 4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
enableDisableNetworkTestingMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1998 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: enableDisableNetworkTestingMsg.h,v $ $Revision: 1.4 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtEnableDisableNetworkTestingMsg_H_
13 #define DtEnableDisableNetworkTestingMsg_H_
14 
15 #include "rtiMsg.h"
17 
18 
19 class DtConnectionMgr;
21 typedef void (*DtEnableDisableNetworkTestingCb)(const DtEnableDisableNetworkTestingMsg& inter, void* usr);
22 
26 {
27 public:
28 
30  DtEnableDisableNetworkTestingMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
31 
32  DtEnableDisableNetworkTestingMsg(const char* fedExName,
33  bool enabled,
34  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
35 
38  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
39 
42 
44  virtual DtRtiMsg* clone(bool copy = true) const;
45 
47  virtual bool networkTestingEnabled() const;
48 
50  virtual void setNetworkTestingEnabled( bool newSetting );
51 
53  virtual void set(const char* fedExName, bool enabled );
54 
56  virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
57 
58 public:
59 
61  static DtRtiMsg* create(const DtNetMsgHeader* initial,
62  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
63 
65  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
66 
68  static void addCallback(DtConnectionMgr* conn,
69  DtEnableDisableNetworkTestingCb cb, void* usr, bool isMomCallback=false);
70  static void removeCallback(DtConnectionMgr* conn,
71  DtEnableDisableNetworkTestingCb cb, void* usr, bool isMomCallback=false);
72 
73 protected:
74 
76  virtual DtNetEnableDisableNetworkTestingMsg* netEnableDisableNetworkTestingMsg();
77  virtual const DtNetEnableDisableNetworkTestingMsg* netEnableDisableNetworkTestingMsg() const;
78 
81 
83  virtual int minSize() const;
84 
86  virtual DtEnableDisableNetworkTestingMsg* self() const;
87 };
88 
89 
91 {
92  return const_cast<DtEnableDisableNetworkTestingMsg*>( this );
93 }
94 
95 
96 #endif
97 
Definition: netEnableDisableNetworkTestingMsg.h:19
DtRtiMsgKind
Definition: rtiMsgKind.h:9
Definition: netRtiMsgHdr.h:23
Definition: fedTimeFactory.h:73
virtual void printData(DtLogicalTimeFactory *logicalTimeFactory) const
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
This class defines a message sent between the exec and the assistant that enables and disables networ...
Definition: enableDisableNetworkTestingMsg.h:25
virtual DtEnableDisableNetworkTestingMsg * self() const
Casts away const-ness.
Definition: enableDisableNetworkTestingMsg.h:90
virtual DtRtiMsg * clone(bool copy=true) const =0
Return a copy/empty object of the same type as this.
virtual DtRtiMsgKind internalDtRtiMsgKind()=0
#define DT_DLL_LRC
Definition: rtiMsConfig.h:155
void(* DtEnableDisableNetworkTestingCb)(const DtEnableDisableNetworkTestingMsg &inter, void *usr)
Definition: enableDisableNetworkTestingMsg.h:21

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)