diff options
author | Adrian Kummerlaender | 2017-10-05 21:57:08 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2017-10-05 21:57:08 +0200 |
commit | c953c72c86c281d650b2a8ff856e3d614664e11a (patch) | |
tree | b04024fa018cc05a1884c57123115a65884ad704 /src/istream/stream.cc | |
download | DictzipQuery-c953c72c86c281d650b2a8ff856e3d614664e11a.tar DictzipQuery-c953c72c86c281d650b2a8ff856e3d614664e11a.tar.gz DictzipQuery-c953c72c86c281d650b2a8ff856e3d614664e11a.tar.bz2 DictzipQuery-c953c72c86c281d650b2a8ff856e3d614664e11a.tar.lz DictzipQuery-c953c72c86c281d650b2a8ff856e3d614664e11a.tar.xz DictzipQuery-c953c72c86c281d650b2a8ff856e3d614664e11a.tar.zst DictzipQuery-c953c72c86c281d650b2a8ff856e3d614664e11a.zip |
Provide basic read only access to dictzip files
`dictzip::Istream` and `dictzip::IstreamBuf` are forked from `alpinocorpus::DzIstream` and `alpinocorpus::DzIstreamBuf` of rug-compling/alpinocorpus.
Diffstat (limited to 'src/istream/stream.cc')
-rw-r--r-- | src/istream/stream.cc | 13 |
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()); +} + +} |