diff options
Diffstat (limited to 'indexer/data_header.cpp')
-rw-r--r-- | indexer/data_header.cpp | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/indexer/data_header.cpp b/indexer/data_header.cpp index 22486c90a1..7ff6d0202e 100644 --- a/indexer/data_header.cpp +++ b/indexer/data_header.cpp @@ -2,8 +2,11 @@ #include "point_to_int64.hpp" #include "scales.hpp" +#include "../defines.hpp" + #include "../coding/file_reader.hpp" #include "../coding/file_writer.hpp" +#include "../coding/file_container.hpp" #include "../coding/write_to_sink.hpp" #include "../coding/varint.hpp" @@ -12,15 +15,6 @@ namespace feature { - DataHeader::DataHeader() - { - Reset(); - } - - void DataHeader::Reset() - { - } - m2::RectD const DataHeader::GetBounds() const { return Int64ToRect(m_bounds, m_codingParams.GetCoordBits()); @@ -77,4 +71,9 @@ namespace feature src.Read(m_scales.data(), m_scales.size()); } + + void DataHeader::LoadForVersion(FilesContainerR const & cont) + { + Load(cont.GetReader(HEADER_FILE_TAG)); + } } |