MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
creRespMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1998 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: creRespMsg.h,v $ $Revision: 1.18 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtCreateResponseMsg_H_
13 #define DtCreateResponseMsg_H_
14 
15 #include "rtiMsg.h"
16 #include "netRtiMsgHdr.h"
17 #include "netCrRespMsg.h"
18 
19 class DtConnectionMgr;
21 typedef void (*DtCreateResponseCb)(const DtCreateResponseMsg& inter, void* usr);
22 
24 {
33 };
34 
36 {
37 public:
38 
40  DtCreateResponseMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
41 
42  DtCreateResponseMsg(unsigned long ID,
44  MAKRti::DtString const & errorString,
45  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
46 
49  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
50 
52  virtual ~DtCreateResponseMsg();
53 
55  virtual DtRtiMsg* clone(bool copy = true) const;
56 
58  virtual void set(unsigned long ID,
59  DtCreateResponseFlag flag, MAKRti::DtString const & errorString);
60 
62  void setDestinationID( const unsigned long ID );
63  const unsigned long destinationID() const;
64 
66  void setResponseFlag(DtCreateResponseFlag flag);
67  DtCreateResponseFlag responseFlag() const;
68 
70  virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
71 
72 public:
73 
75  static DtRtiMsg* create(const DtNetMsgHeader* initial,
76  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
77 
79  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
80 
82  static void addCallback(DtConnectionMgr* conn,
83  DtCreateResponseCb cb, void* usr);
84  static void removeCallback(DtConnectionMgr* conn,
85  DtCreateResponseCb cb, void* usr);
86 
87  void setErrorString( MAKRti::DtString const & errorStr );
88  MAKRti::DtString errorString() const;
89  char* errorStringPtr();
90  const char* errorStringPtr() const;
91  void setErrorStringSize( unsigned long size );
92  unsigned long errorStringSize() const;
93 
94 protected:
95 
97  virtual DtNetCreateResponseMsg* netCreateResponseMsg();
98  virtual const DtNetCreateResponseMsg* netCreateResponseMsg() const;
99 
102 
104  virtual int minSize() const;
105 
107  virtual DtCreateResponseMsg* self() const;
108 };
109 
110 
112 {
113  return const_cast<DtCreateResponseMsg*>( this );
114 }
115 
116 #endif
117 

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)