aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-03-11 19:08:54 +0000
committerlloyd <[email protected]>2008-03-11 19:08:54 +0000
commitc2469e38aa1c5bbecc5d1164134267d42c1a0dc9 (patch)
tree4ddca0842f896cd983f649218ae0b35d29d382b1 /include
parent58f9a9c32dae6c359451d682f6120fb170a7dd3f (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.h8
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;
};
}