diff options
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_; + +}; + +} |