aboutsummaryrefslogtreecommitdiff
path: root/src/istream/stream.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/istream/stream.cc')
-rw-r--r--src/istream/stream.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/istream/stream.cc b/src/istream/stream.cc
new file mode 100644
index 0000000..aea548f
--- /dev/null
+++ b/src/istream/stream.cc
@@ -0,0 +1,13 @@
+#include <iostream>
+
+#include "stream.h"
+
+namespace dictzip {
+
+Istream::Istream(char const* filename):
+ std::istream(0),
+ buffer_{ new IstreamBuf(filename) } {
+ this->rdbuf(buffer_.get());
+}
+
+}