MAK RTIspy API Documentation for HLA Evolved
connectMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1998 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: connectMsg.h,v $ $Revision: 1.8 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtConnectMsg_H_
13 #define DtConnectMsg_H_
14 
15 #include "rtiMsg.h"
16 #include "netDesgFedMsg.h"
17 
20 
21 class DtConnectionMgr;
22 class DtConnectMsg;
23 typedef void (*DtConnectCb)(const DtConnectMsg& inter, void* usr);
24 
26 {
27 public:
28 
30  DtConnectMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
31 
33  DtConnectMsg(const DtNetConnectMsg* netRep,
34  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
35 
37  DtConnectMsg(DtHandle handle,
38  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
39 
41  virtual ~DtConnectMsg();
42 
44  virtual DtRtiMsg* clone(bool copy = true) const;
45 
47  virtual void set(DtHandle handle);
48 
50  virtual DtHandle connectionHandle() const;
51  virtual void setConnectionHandle(DtHandle handle);
52 
54  virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
55 
56 public:
57 
59  static DtRtiMsg* create(const DtNetMsgHeader* initial,
60  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
61 
62  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
63 
65  static void addCallback(DtConnectionMgr* conn,
66  DtConnectCb cb, void* usr, bool isMomCallback=false);
67  static void removeCallback(DtConnectionMgr* conn,
68  DtConnectCb cb, void* usr, bool isMomCallback=false);
69 
70 protected:
71 
73  virtual DtNetConnectMsg* netConnectMsg();
74  virtual const DtNetConnectMsg* netConnectMsg() const;
75 
78 
80  virtual int minSize() const;
81 
83  virtual DtConnectMsg* self() const;
84 
85 protected:
86 
87 };
88 
89 
91 {
92  return const_cast<DtConnectMsg*>( this );
93 }
94 
95 #endif
96 

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)