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

Document ID: Generated on Fri Mar 14 19:08:55 EDT 2014 from SVN revision 137085
Copyright © 2005-2014 VT MÄK Inc. All Rights Reserved (www.mak.com)