MAK RTIspy API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
bufferPrinter.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: bufferPrinter.h,v $ $Revision: 1.1 $ $State: Exp $
7 *******************************************************************************/
8 
9 #ifndef bufferPrinter_H_
10 #define bufferPrinter_H_
11 
14 
15 #include "rtiMsConfig.h"
16 #include "printerBuf.h"
17 #include <vlutil/vlPrint.h>
18 #include <vlutil/vlSmartPointers.h>
19 
25 class DT_DLL_RTIUTIL DtBufferPrinter : public MAKRti::DtPrinter
26 {
27 public:
28 
30  DtBufferPrinter( std::shared_ptr<DtPrinterBuf> buffer );
31 
33  virtual ~DtBufferPrinter();
34 
36  virtual void write(const std::string &st, int notify_level, bool sync);
37 
39  std::shared_ptr<DtPrinterBuf> buffer() { return myBuffer; }
40 
42  virtual void swapBuffer( std::shared_ptr<DtPrinterBuf> buffer );
43 
46  virtual void swapAndCopyBuffer( std::shared_ptr<DtPrinterBuf> buffer );
47 
48 protected:
49 
51  std::shared_ptr<DtPrinterBuf> myBuffer;
52 
53 };
54 
55 #endif
56 
This file contains the declaration of DtPrinterBuf.
std::shared_ptr< DtPrinterBuf > myBuffer
The buffer to which all output data is written.
Definition: bufferPrinter.h:51
Prints data from an output stream to a buffer.
Definition: bufferPrinter.h:25
std::shared_ptr< DtPrinterBuf > buffer()
Get a shared pointer to the buffer which this printer writes to.
Definition: bufferPrinter.h:39
#define DT_DLL_RTIUTIL
Definition: rtiMsConfig.h:160

Document ID: Generated on Sun Jul 20 16:15:30 EDT 2025 from SVN revision 277985
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)