MAK RTIspy API Documentation for HLA 1516
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
libsrc
rtiutil
msgBundler.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 2010 MaK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
/*********************************************************************
6
** $RCSfile: msgBundler.h,v $ $Revision: $ $State: Exp $
7
*********************************************************************/
8
12
13
#ifndef msgBundler_H_
14
#define msgBundler_H_
15
16
#include <
rtiMsConfig.h
>
17
#include <vlutil/vlMachineTypes.h>
18
#include <vlutil/vlSmartPointers.h>
19
#include <vector>
20
21
#include "
msgHeaderReader.h
"
22
26
class
DT_DLL_RTIUTIL
DtMsgBundler
27
{
28
public
:
29
31
DtMsgBundler
(DtBoost::shared_ptr<DtMsgHeaderReader> hdrReader,
size_t
maxBundleSize = 0);
32
34
virtual
~
DtMsgBundler
();
35
38
virtual
bool
addToBundle(
char
* msg,
size_t
msgSize);
39
43
virtual
bool
getBundle(
char
** bundlePtr,
size_t
& bundleSize);
44
46
virtual
bool
isBundled(
const
char
* bufferPtr,
size_t
size)
const
;
47
51
virtual
bool
unbundle(
char
* bufferPtr,
size_t
size);
52
55
virtual
bool
recvNextMsgFromBundle(
char
** msgPtr,
size_t
& msgSize);
56
59
virtual
size_t
maxSendBundleSize()
const
;
60
virtual
void
setMaxSendBundleSize(
size_t
maxSize);
61
62
protected
:
63
65
std::vector<char>
mySendBundlingBuff
;
66
68
size_t
myCurrSendBundleSize
;
69
71
size_t
myRemainingRecvBundleSize
;
72
74
char
*
myNextRecvMsg
;
75
77
bool
myResizeSendBuff
;
78
80
size_t
myNewSendBuffSize
;
81
83
DtBoost::shared_ptr<DtMsgHeaderReader>
myHeaderReader
;
84
};
85
86
#endif
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
)