VR-Link API Documentation for HLA Evolved
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
vl
commentRPdu.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
*********************************************************************/
5
6
#ifndef DtCommentRPdu_H_
7
#define DtCommentRPdu_H_
8
12
13
14
#if DtDIS
15
16
#include "
hostStructs.h
"
17
#include "
pduWithData.h
"
18
#include <
vlpi/datumIdType.h
>
19
#include "
packets/commentRP.h
"
20
#include "
exerciseConn.h
"
21
22
23
class
DT_DLL_VL
DtCommentRPdu;
24
26
typedef
void (*DtCommentRPduCb)(DtCommentRPdu* pdu,
void
* usr);
27
31
class
DT_DLL_VL
DtCommentRPdu :
public
DtPduWithData
32
{
33
public
:
35
DtCommentRPdu(
DtBufferPtr
buffer =
DtUSE_INTERNAL_BUFFER
);
36
DtCommentRPdu(
const
DtNetCommentRPdu* initial,
37
DtBufferPtr
buffer =
DtUSE_INTERNAL_BUFFER
);
38
DtCommentRPdu(
const
DtEntityIdentifier
& sender,
39
const
DtEntityIdentifier
& receiver,
40
const
char
* message,
41
DtBufferPtr
buffer =
DtUSE_INTERNAL_BUFFER
);
42
DtCommentRPdu(
const
DtCommentRPdu& orig);
43
45
virtual
~DtCommentRPdu();
46
48
DtCommentRPdu& operator=(
const
DtCommentRPdu& orig);
49
51
virtual
void
setComment(
const
char
* message,
int
size);
52
53
public
:
56
static
DtPdu
* create(
const
DtNetPacket
* initial,
57
DtBufferPtr
buffer =
DtUSE_INTERNAL_BUFFER
);
58
61
static
void
addCallback(
DtExerciseConn
* conn,
62
DtCommentRPduCb cb,
void
* usr);
63
static
void
removeCallback(
DtExerciseConn
* conn,
64
DtCommentRPduCb cb,
void
* usr);
65
66
protected
:
69
void
setCommentInternal(
const
char
* message,
int
size);
70
72
virtual
DtPduKind
internalGetPduKind()
const
;
73
75
virtual
DtNetDataPduTail
* dataSection()
const
;
76
77
protected
:
78
79
static
const
int
theStaticSize;
80
81
};
82
83
inline
DtPduKind
DtCommentRPdu::internalGetPduKind()
const
84
{
85
return
DtCommentRPduKind
;
86
}
87
88
#endif
89
#endif
90
Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)