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.h | |
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.h')
-rw-r--r-- | src/istream/stream.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/istream/stream.h b/src/istream/stream.h new file mode 100644 index 0000000..0602d06 --- /dev/null +++ b/src/istream/stream.h @@ -0,0 +1,21 @@ +#pragma once + +#include <iostream> +#include <string> +#include <memory> + +#include "buffer.h" + +namespace dictzip { + +class Istream : public std::istream { +private: + std::shared_ptr<IstreamBuf> buffer_; + +public: + Istream(char const* filename); + virtual ~Istream() {} + +}; + +} |