VR-Link API Documentation for HLA Evolved
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
vl
setDataPdu.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
*********************************************************************/
5
8
9
#ifndef DtSetDataPdu_H_
10
#define DtSetDataPdu_H_
11
12
#if DtDIS
13
14
#include "
hostStructs.h
"
15
#include "
pduWithData.h
"
16
#include <
vlpi/datumIdType.h
>
17
18
19
class
DT_DLL_VL
DtExerciseConn
;
20
class
DT_DLL_VL
DtSetDataPdu;
21
typedef
DtSetDataPdu
DtSetDataInteraction
;
22
24
typedef
void (*DtSetDataPduCb)(DtSetDataPdu *pdu,
void
*usr);
25
29
class
DT_DLL_VL
DtSetDataPdu :
public
DtPduWithData
30
{
31
public
:
32
33
enum
{ PduStaticSize=40 };
34
35
public
:
37
DtSetDataPdu(
DtBufferPtr
buffer =
DtUSE_INTERNAL_BUFFER
);
38
DtSetDataPdu(
const
DtNetSetDataPdu
*initial,
39
DtBufferPtr
buffer =
DtUSE_INTERNAL_BUFFER
);
40
43
static
DtPdu
*create(
const
DtNetPacket
*initial,
44
DtBufferPtr
buffer =
DtUSE_INTERNAL_BUFFER
);
45
48
static
void
addCallback(
DtExerciseConn
*conn,
49
DtSetDataPduCb cb,
void
*usr);
50
static
void
removeCallback(
DtExerciseConn
*conn,
51
DtSetDataPduCb cb,
void
*usr);
52
54
unsigned
long
requestId()
const
;
55
void
setRequestId(
unsigned
long
id
);
56
58
virtual
void
printData()
const
;
59
61
virtual
void
printDataToStream(std::ostream& stream)
const
;
62
63
protected
:
65
DtPduKind
internalGetPduKind()
const
{
return
DtSetDataPduKind
;}
66
68
DtNetDataPduTail
*dataSection()
const
;
69
};
70
71
#endif
72
#endif
73
74
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
)