diff options
author | lloyd <[email protected]> | 2008-03-11 19:08:54 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-03-11 19:08:54 +0000 |
commit | c2469e38aa1c5bbecc5d1164134267d42c1a0dc9 (patch) | |
tree | 4ddca0842f896cd983f649218ae0b35d29d382b1 /include | |
parent | 58f9a9c32dae6c359451d682f6120fb170a7dd3f (diff) |
In DataSink_Stream, allow explicitly setting a pathname (for
identification purposes) when passing in a std::ostream, since there
is no portable way to go from a std::ostream to the file or other device
that it names
Diffstat (limited to 'include')
-rw-r--r-- | include/data_snk.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/data_snk.h b/include/data_snk.h index 9cdf603ab..34bdaa35e 100644 --- a/include/data_snk.h +++ b/include/data_snk.h @@ -32,13 +32,15 @@ class DataSink_Stream : public DataSink { public: void write(const byte[], u32bit); - DataSink_Stream(std::ostream&); + + DataSink_Stream(std::ostream&, const std::string& = ""); DataSink_Stream(const std::string&, bool = false); ~DataSink_Stream(); private: - const std::string fsname; + const std::string identifier; + const bool owner; + std::ostream* sink; - bool owns; }; } |