MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
disableMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1998 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: disableMsg.h,v $ $Revision: 1.9 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtDisableMsg_H_
13 #define DtDisableMsg_H_
14 
15 #ifdef DtTIME
16 
17 #include "rtiMsg.h"
18 #include "netDisableMsg.h"
19 
20 enum DtTimeServiceType
21 {
22  DtTimeRegulation=0,
23  DtTimeConstrained
24 };
25 
26 class DtConnectionMgr;
27 class DtDisableMsg;
28 typedef void (*DtDisableCb)(const DtDisableMsg& msg, void* usr);
29 
30 class DT_DLL_LRC DtDisableMsg : public DtRtiMsg
31 {
32 public:
33 
35  DtDisableMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
36 
38  DtDisableMsg(
39  DtTimeServiceType type,
40  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
41 
43  DtDisableMsg(const DtNetDisable* netRepMsg,
44  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
45 
47  virtual ~DtDisableMsg();
48 
50  virtual DtRtiMsg* clone(bool copy = true) const;
51 
53  virtual void set(DtTimeServiceType type);
54 
56  virtual void setServiceType(DtTimeServiceType type);
57  virtual DtTimeServiceType serviceType() const;
58 
60  virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
61 
62 public:
63 
65  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
66 
68  static DtRtiMsg* create(const DtNetMsgHeader* initial,
69  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
70 
72  static void addCallback(DtConnectionMgr *conn,
73  DtDisableCb cb, void *usr);
74  static void removeCallback(DtConnectionMgr *conn,
75  DtDisableCb cb, void *usr);
76 
77 protected:
78 
81 
83  virtual DtNetDisable* netDisableMsg();
84  virtual const DtNetDisable* netDisableMsg() const;
85 
87  virtual int minSize() const;
88 
90  virtual DtDisableMsg* self() const;
91 };
92 
93 inline DtDisableMsg* DtDisableMsg::self() const
94 {
95  return const_cast<DtDisableMsg*>( this );
96 }
97 
98 #endif
99 #endif
100 

Document ID: Generated on Mon Jul 9 10:30:41 EDT 2018 from SVN revision 190224
Copyright © 2005-2018 VT MÄK Inc. All Rights Reserved (www.mak.com)