MAK RTIspy API Documentation for HLA 1.3
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
libsrc
RTI
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
24
class
DT_DLL_LRC
DtAliveMsg
:
public
DtRtiMsg
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
65
virtual
DtRtiMsgKind
internalDtRtiMsgKind
();
66
68
virtual
int
minSize()
const
;
69
71
virtual
DtAliveMsg
*
self
()
const
;
72
73
protected
:
74
75
};
76
77
78
inline
DtAliveMsg
*
DtAliveMsg::self
()
const
79
{
80
return
const_cast<
DtAliveMsg
*
>
( this );
81
}
82
83
#endif
84
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
)