#if !defined OUTPUTSTREAM_H_KABASICCLASSES
#define OUTPUTSTREAM_H_KABASICCLASSES

#include <iostream>
#include <streambuf>
#include <vector>

namespace kaBasicClasses {

class OutputStreamBuffer: public std::streambuf {
public:
	virtual int flush() =0;
};

class OutputStream: public std::ostream {
protected:
	OutputStreamBuffer* theBuffer;
public:
	explicit OutputStream( OutputStreamBuffer* b );
	OutputStream& flush(); //this function is the reason this class is created: to do more then ostream::flush()
};

}; //kaBasicClasses


#endif

Hosted by www.Geocities.ws

1