-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathostream
43 lines (37 loc) · 1.28 KB
/
ostream
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
32
33
34
35
36
37
38
39
40
41
42
43
/*****************************************************************************/
// Filename: ostream.h
/*****************************************************************************/
// Description: This class represents an output stream class that is tied
// to the CRT display
/*****************************************************************************/
#ifndef _ostream_h
#define _ostream_h
#include <ios>
#include <string>
using std::string;
namespace ppcStreams
{
class ostream : virtual public ios
{
public:
ostream();
virtual ~ostream();
virtual ostream& operator<<(char c);
virtual ostream& operator<<(char* s);
virtual ostream& operator<<(const char* s);
virtual ostream& operator<<(double d);
virtual ostream& operator<<(float f);
virtual ostream& operator<<(int i);
virtual ostream& operator<<(long l);
virtual ostream& operator<<(short s);
virtual ostream& operator<<(unsigned int ui);
virtual ostream& operator<<(unsigned long ui);
virtual ostream& operator<<(unsigned short ui);
virtual ostream& operator<<(string s);
virtual ostream& operator<<(void* var);
virtual ostream& operator<<(ostream& (*__pf)(ostream&));
protected:
virtual int OutFunction(const char* format, ...);
};
};
#endif