diff options
author | Chris Wilson <chris+github@qwirx.com> | 2014-04-29 19:22:54 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2014-04-29 19:22:54 +0000 |
commit | 1edb424b734ea3e4f2128e1cbc77a22bd001f8d5 (patch) | |
tree | da3e95edf1ab1a1808ac6673811f76610f9dfce2 /lib/common/IOStream.h | |
parent | 1ce71f487e6cd6514198c3769cd0a337395c1f8e (diff) |
Add a ToString method to IOStream and some subclasses.
Useful to help debug problems such as invalid file headers when the source
of the stream might not be too obvious.
Diffstat (limited to 'lib/common/IOStream.h')
-rw-r--r-- | lib/common/IOStream.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/common/IOStream.h b/lib/common/IOStream.h index 0b1cedd3..51aef19f 100644 --- a/lib/common/IOStream.h +++ b/lib/common/IOStream.h @@ -65,6 +65,7 @@ public: void Flush(int Timeout = IOStream::TimeOutInfinite); static int ConvertSeekTypeToOSWhence(int SeekType); + virtual std::string ToString() const; }; |