diff options
author | Adrian Kummerlaender | 2017-10-07 16:57:15 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2017-10-07 16:57:15 +0200 |
commit | c7a82e67007aecb46315780b53a691a519d90513 (patch) | |
tree | ccdeb8ae75a200ec41e34d79eba1ad9671f5a5da /src/archive.h | |
parent | 51a422f161e7e7cc5b1093a12e004165754ec1b9 (diff) | |
download | DictzipQuery-c7a82e67007aecb46315780b53a691a519d90513.tar DictzipQuery-c7a82e67007aecb46315780b53a691a519d90513.tar.gz DictzipQuery-c7a82e67007aecb46315780b53a691a519d90513.tar.bz2 DictzipQuery-c7a82e67007aecb46315780b53a691a519d90513.tar.lz DictzipQuery-c7a82e67007aecb46315780b53a691a519d90513.tar.xz DictzipQuery-c7a82e67007aecb46315780b53a691a519d90513.tar.zst DictzipQuery-c7a82e67007aecb46315780b53a691a519d90513.zip |
Introduce ArchiveFile class
Diffstat (limited to 'src/archive.h')
-rw-r--r-- | src/archive.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/archive.h b/src/archive.h new file mode 100644 index 0000000..fcf19b7 --- /dev/null +++ b/src/archive.h @@ -0,0 +1,19 @@ +#pragma once + +#include "index.h" + +namespace dictzip { + +class ArchiveFile { +public: + ArchiveFile(const std::string& path); + + std::string get(std::size_t offset, std::size_t length) const; + std::string get(const IndexFile::Entry& entry) const; + +private: + const std::string path_; + +}; + +} |