MAK RTIspy API Documentation for HLA Evolved
subInterMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1998 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: subInterMsg.h,v $ $Revision: 1.15 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtSubInterMsg_H_
13 #define DtSubInterMsg_H_
14 
15 #include "rtiMsg.h"
16 #include "netSubIntMsg.h"
17 
18 class DtConnectionMgr;
19 class DtSubInterMsg;
20 typedef void (*DtSubInterCb)(const DtSubInterMsg& inter, void* usr);
21 
23 {
24 public:
25 
27  DtSubInterMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
28 
30  DtInteractionClassHandle theInter, bool isPassive,
31  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
32 
34  DtSubInterMsg(const DtNetSubInterMsg* netRepMsg,
35  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
36 
38  virtual ~DtSubInterMsg();
39 
41  virtual DtRtiMsg* clone(bool copy = true) const;
42 
44  virtual void set( DtInteractionClassHandle theInter, bool isPassive );
45 
47  virtual void setHandle(DtInteractionClassHandle hand);
48  virtual DtInteractionClassHandle handle() const;
49 
51  virtual void setPassive( bool isPassive );
52  virtual bool isPassive() const;
53 
55  virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
56 
57 public:
58 
60  static DtRtiMsg* create(const DtNetMsgHeader* initial,
61  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
62 
64  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
65 
67  static void addCallback(DtConnectionMgr* conn,
68  DtSubInterCb cb, void* usr);
69  static void removeCallback(DtConnectionMgr* conn,
70  DtSubInterCb cb, void* usr);
71 
72 protected:
73 
75  virtual DtNetSubInterMsg* netSubInterMsg();
76  virtual const DtNetSubInterMsg* netSubInterMsg() const;
77 
80 
82  virtual int minSize() const;
83 
85  virtual DtSubInterMsg* self() const;
86 };
87 
88 
90 {
91  return const_cast<DtSubInterMsg*>( this );
92 }
93 
94 #endif
95 

Document ID: Generated on Tue May 7 16:26:47 EDT 2013 from SVN revision 126903
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)