MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
assistantShutdownMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2008 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: assistantShutdownMsg.h,v $ $Revision: 1.2 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef assistantShutdownMsg_H_
13 #define assistantShutdownMsg_H_
14 
17 
18 #include "assistantMsg.h"
20 
24 
25 typedef void (*DtAssistantShutdownMsgCb)(const DtAssistantShutdownMsg& inter, void* usr);
26 
27 
33 {
34 
35 public:
36 
38  {
39  DtDoNotShutdown = 0,
41  DtForceShutdown
42  };
43 
45  DtAssistantShutdownMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
46 
49  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
50 
52  virtual ~DtAssistantShutdownMsg();
53 
55  virtual DtAssistantMsg* clone(bool copy = true) const;
56 
58  virtual void setIsAssistantToAssistant(bool yesNo);
59  virtual bool isAssistantToAssistant() const;
60 
62  virtual void setForceShutdown(bool yesNo);
63  virtual bool isForceShutdown() const;
64 
66  virtual void printData() const;
67 
68 public:
69 
71  static DtAssistantMsg* create(const DtNetAssistantMsgHeader* initial,
72  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
73 
75  static DtAssistantMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
76 
78  static void addCallback(DtRtiAssistantServer* conn,
79  DtAssistantShutdownMsgCb cb, void* usr);
80  static void removeCallback(DtRtiAssistantServer* conn,
81  DtAssistantShutdownMsgCb cb, void* usr);
82  static void addCallback(DtAssistantMsgQueue* queue,
83  DtAssistantShutdownMsgCb cb, void* usr);
84  static void removeCallback(DtAssistantMsgQueue* queue,
85  DtAssistantShutdownMsgCb cb, void* usr);
86 
87 protected:
88 
90  virtual DtNetAssistantShutdownMsg* netAssistantShutdownMsg();
91  virtual const DtNetAssistantShutdownMsg* netAssistantShutdownMsg() const;
92 
95 
97  virtual int minSize() const;
98 
99 };
100 
101 #endif

Document ID: Generated on Fri Sep 27 00:57:56 EDT 2019 from SVN revision 201708
Copyright © 2005-2018 VT MÄK Inc. All Rights Reserved (www.mak.com)