My "Fully Buffered" fstream wrapper class -- Comments Please

Hi all,

Here is my wrapper class for ofstream. I would greatly appreciate any comments and suggestions. Even more importantly, if I've just reinvented the wheel, please point me towards the original, because it's almost certainly better than my version.

* Must not write to file until explicitly flush() ed.
* Must support both formatted << and unformatted write(ptr, size) operations.
* Should expose an ostream object to be passed to functions
---> All my objects have a WriteBinary(ofstream&) member function that would otherwise have to be overloaded to accept Output& as well
* Should perform reasonably well

Thanks in advance!

Topic archived. No new replies allowed.