MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
aliveMsg.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1998 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: aliveMsg.h,v $ $Revision: 1.14 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DtAliveMsg_H_
13 #define DtAliveMsg_H_
14 
15 #include "rtiMsg.h"
16 #include "netRtiMsgHdr.h"
17 #include "netAliveMsg.h"
18 #include <vlutil/vlString.h>
19 
20 class DtConnectionMgr;
21 class DtAliveMsg;
22 typedef void (*DtAliveCb)(const DtAliveMsg& inter, void* usr);
23 
25 {
26 public:
27 
29  DtAliveMsg(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
30 
32  DtAliveMsg(const DtNetAliveMsg* netRep,
33  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
34 
36  virtual ~DtAliveMsg();
37 
39  virtual DtRtiMsg* clone(bool copy = true) const;
40 
42  virtual void printData(DtLogicalTimeFactory* logicalTimeFactory) const;
43 
44 public:
45 
47  static DtRtiMsg* create(const DtNetMsgHeader* initial,
48  DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
49 
50  static DtRtiMsg* create(DtBufferPtr buffer = DtUSE_INTERNAL_BUFFER);
51 
53  static void addCallback(DtConnectionMgr* conn,
54  DtAliveCb cb, void* usr, bool isMomCallback=false);
55  static void removeCallback(DtConnectionMgr* conn,
56  DtAliveCb cb, void* usr, bool isMomCallback=false);
57 
58 protected:
59 
61  virtual DtNetAliveMsg* netAliveMsg();
62  virtual const DtNetAliveMsg* netAliveMsg() const;
63 
66 
68  virtual int minSize() const;
69 
71  virtual DtAliveMsg* self() const;
72 
73 protected:
74 
75 };
76 
77 
79 {
80  return const_cast<DtAliveMsg*>( this );
81 }
82 
83 #endif
84 
DtRtiMsgKind
Definition: rtiMsgKind.h:9
Definition: aliveMsg.h:24
Definition: netRtiMsgHdr.h:23
Definition: fedTimeFactory.h:73
virtual void printData(DtLogicalTimeFactory *logicalTimeFactory) const
virtual DtAliveMsg * self() const
Casts away const-ness.
Definition: aliveMsg.h:78
Instances of DtConnectionMgr manage the communication objects that the RTI will use to either communi...
Definition: connectMgr.h:67
DtRtiMsg is the base class for messages between RTI components.
Definition: rtiMsg.h:34
virtual DtRtiMsg * clone(bool copy=true) const =0
Return a copy/empty object of the same type as this.
virtual DtRtiMsgKind internalDtRtiMsgKind()=0
void(* DtAliveCb)(const DtAliveMsg &inter, void *usr)
Definition: aliveMsg.h:22
Definition: netAliveMsg.h:19
#define DT_DLL_LRC
Definition: rtiMsConfig.h:155

Document ID: Generated on Wed Jul 8 16:20:32 EDT 2026 from SVN revision 291616
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)