1 | #pragma once |
---|---|
2 | |
3 | #include <IO/ReadBuffer.h> |
4 | #include "IHierarchiesProvider.h" |
5 | |
6 | |
7 | // Reads regions hierarchy in geoexport format |
8 | class RegionsHierarchyFormatReader : public IRegionsHierarchyReader |
9 | { |
10 | private: |
11 | DB::ReadBufferPtr input; |
12 | |
13 | public: |
14 | RegionsHierarchyFormatReader(DB::ReadBufferPtr input_) : input(std::move(input_)) {} |
15 | |
16 | bool readNext(RegionEntry & entry) override; |
17 | }; |
18 |