MAK RTIspy API Documentation for HLA 1.3
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 {
32 };
33 
35 {
36 public:
37 
39  DtCreateResponseMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
40 
41  DtCreateResponseMsg(unsigned long ID,
43  MAKRti::DtString const & errorString,
44  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
45 
48  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
49 
51  virtual ~DtCreateResponseMsg();
52 
54  virtual DtRtiMsg* clone(bool copy = true) const;
55 
57  virtual void set(unsigned long ID,
58  DtCreateResponseFlag flag, MAKRti::DtString const & errorString);
59 
61  void setDestinationID( const unsigned long ID );
62  const unsigned long destinationID() const;
63 
65  void setResponseFlag(DtCreateResponseFlag flag);
66  DtCreateResponseFlag responseFlag() const;
67 
69  virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
70 
71 public:
72 
74  static DtRtiMsg* create(const DtNetMsgHeader* initial,
75  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
76 
78  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
79 
81  static void addCallback(DtConnectionMgr* conn,
82  DtCreateResponseCb cb, void* usr);
83  static void removeCallback(DtConnectionMgr* conn,
84  DtCreateResponseCb cb, void* usr);
85 
86  void setErrorString( MAKRti::DtString const & errorStr );
87  MAKRti::DtString errorString() const;
88  char* errorStringPtr();
89  const char* errorStringPtr() const;
90  void setErrorStringSize( unsigned long size );
91  unsigned long errorStringSize() const;
92 
93 protected:
94 
96  virtual DtNetCreateResponseMsg* netCreateResponseMsg();
97  virtual const DtNetCreateResponseMsg* netCreateResponseMsg() const;
98 
101 
103  virtual int minSize() const;
104 
106  virtual DtCreateResponseMsg* self() const;
107 };
108 
109 
111 {
112  return const_cast<DtCreateResponseMsg*>( this );
113 }
114 
115 #endif
116 

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)