C++ TargetRTS
Loading...
Searching...
No Matches
RTOBuffer.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 __RTOBuffer_h__
11#define __RTOBuffer_h__ included
12
13#ifdef PRAGMA
14#pragma interface
15#endif
16
17#ifndef __RTConfig_h__
18#include <RTConfig.h>
19#endif
20
23{
24public:
25 RTOBuffer( void );
26 virtual ~RTOBuffer( void );
27
33 virtual int write( const char * data, int size ) = 0;
34
40 virtual int flush( void ) = 0;
41
42private:
43 // unavailable methods
44 RTOBuffer( const RTOBuffer & );
45 RTOBuffer & operator=( const RTOBuffer & );
46};
47
48#endif // __RTOBuffer_h__
Represents an output buffer.
Definition: RTOBuffer.h:23
virtual int flush(void)=0
Flushes the data written to the buffer.
virtual int write(const char *data, int size)=0
Write a string to the buffer.