MAK RTIspy API Documentation for HLA 1516
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 
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 
69 
72 
75 
78 
81 
83  DtBoost::shared_ptr<DtMsgHeaderReader> myHeaderReader;
84 };
85 
86 #endif

Document ID: Generated on Fri Mar 14 19:08:55 EDT 2014 from SVN revision 137085
Copyright © 2005-2014 VT MÄK Inc. All Rights Reserved (www.mak.com)