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.
Must expose an ostream object to be passed to functions
* All my objects have a WriteBinary(ofstream&) member function that would be nice not to have to rewrite/overload
Performance is appreciated.
Thanks in advance!