C++ TargetRTS
Loading...
Searching...
No Matches
RTDynamicStringOutBuffer.h
1/*
2 * Licensed Materials - Property of HCL and/or IBM
3 * Copyright HCL Technologies Ltd. 2016, 2021. All Rights Reserved.
4 * Copyright IBM Corporation 1999, 2016. All Rights Reserved.
5 *
6 * U.S. Government Users Restricted Rights - Use, duplication or
7 * disclosure restricted by GSA ADP Schedule.
8 */
9
10#ifndef __RTDynamicStringOutBuffer_h__
11#define __RTDynamicStringOutBuffer_h__ included
12
13#ifdef PRAGMA
14#pragma interface
15#endif
16
17#ifndef __RTOBuffer_h__
18#include <RTOBuffer.h>
19#endif
20
21#include <string>
22
25{
26public:
28 virtual ~RTDynamicStringOutBuffer( void );
29
30 virtual int write( const char * data, int size ) override;
31 virtual int flush( void ) override;
32
36 const char* getString();
37
38private:
39 std::string buffer;
40
41private:
42 // unavailable methods
45}; //lint !e1712
46
47#endif // __RTDynamicStringOutBuffer_h__
A dynamic string buffer.
Definition: RTDynamicStringOutBuffer.h:25
virtual int flush(void) override
Flushes the data written to the buffer.
virtual int write(const char *data, int size) override
Write a string to the buffer.
const char * getString()
Get a pointer to the buffer string (owned by this buffer).
Represents an output buffer.
Definition: RTOBuffer.h:23