Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvng <viktor.govako@gmail.com>2011-08-25 08:47:17 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:22:21 +0300
commit23894576db1c9c13ba55d9173488202a050a0d3a (patch)
treee8c7f3572c476271e431b6b7166595bf83565880 /indexer/data_header.cpp
parentb9df96e89b57666178aada45c4c25eece8f8d756 (diff)
[Refactoring] Factor out feature loading routine to separate instance.
Diffstat (limited to 'indexer/data_header.cpp')
-rw-r--r--indexer/data_header.cpp17
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));
+ }
}