-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathOutputStream.h
More file actions
31 lines (24 loc) · 807 Bytes
/
OutputStream.h
File metadata and controls
31 lines (24 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// OutputStream.h - Base class for all output streams.
#ifndef __OUTPUTSTREAM_H__
#define __OUTPUTSTREAM_H__
#include <Stream.h>
namespace Stdlib
{
class OutputStream : public Stream
{
public:
virtual OutputStream& operator<<(const char *string) = 0;
virtual OutputStream& operator<<(char chr) = 0;
virtual OutputStream& operator<<(short number) = 0;
virtual OutputStream& operator<<(int number) = 0;
virtual void WriteByte(unsigned char value) = 0;
virtual void WriteWord(unsigned short value) = 0;
virtual void WriteLongWord(unsigned int value) = 0;
virtual void WriteChar(char value) = 0;
virtual void WriteShort(short value) = 0;
virtual void WriteInteger(int value) = 0;
bool CanRead() { return false; };
bool CanWrite() { return true; };
};
}
#endif