mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 13:03:36 +00:00
[core] Re-add MwmValue::GetRegionData()
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
committed by
Konstantin Pastbin
parent
b85c11ea5a
commit
729808fd14
@@ -388,6 +388,12 @@ MwmValue::MwmValue(LocalCountryFile const & localFile)
|
|||||||
MYTHROW(CorruptedMwmFile, (m_cont.GetFileName()));
|
MYTHROW(CorruptedMwmFile, (m_cont.GetFileName()));
|
||||||
|
|
||||||
m_header.Load(m_cont);
|
m_header.Load(m_cont);
|
||||||
|
|
||||||
|
if (m_cont.IsExist(REGION_INFO_FILE_TAG))
|
||||||
|
{
|
||||||
|
ReaderSource<FilesContainerR::TReader> src(m_cont.GetReader(REGION_INFO_FILE_TAG));
|
||||||
|
m_regionData.Deserialize(src);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
MwmValue::~MwmValue() {}
|
MwmValue::~MwmValue() {}
|
||||||
|
|||||||
@@ -385,6 +385,7 @@ public:
|
|||||||
private:
|
private:
|
||||||
version::MwmVersion m_version;
|
version::MwmVersion m_version;
|
||||||
feature::DataHeader m_header;
|
feature::DataHeader m_header;
|
||||||
|
feature::RegionData m_regionData;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// m_ftTable should always present, m_relTable maybe nullptr.
|
// m_ftTable should always present, m_relTable maybe nullptr.
|
||||||
@@ -399,6 +400,7 @@ public:
|
|||||||
void SetTable(MwmInfoEx & info);
|
void SetTable(MwmInfoEx & info);
|
||||||
|
|
||||||
feature::DataHeader const & GetHeader() const { return m_header; }
|
feature::DataHeader const & GetHeader() const { return m_header; }
|
||||||
|
feature::RegionData const & GetRegionData() const { return m_regionData; }
|
||||||
version::MwmVersion const & GetMwmVersion() const { return m_version; }
|
version::MwmVersion const & GetMwmVersion() const { return m_version; }
|
||||||
std::string const & GetCountryFileName() const { return m_file.GetCountryName(); }
|
std::string const & GetCountryFileName() const { return m_file.GetCountryName(); }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user