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:
authorSergey Magidovich <mgsergio@mapswithme.com>2015-12-15 21:12:40 +0300
committerSergey Yershov <yershov@corp.mail.ru>2016-03-23 16:04:00 +0300
commit4c3355a1454707bf96487674e37ad0b7ebd0b880 (patch)
tree8ff4a4ff3baa36497c7d073d4876120c797ae17b /indexer/feature.hpp
parenta2b10e7042ec97a186a3cd76638ca43b2986440b (diff)
FeatureType from/to XMLFeature.
Diffstat (limited to 'indexer/feature.hpp')
-rw-r--r--indexer/feature.hpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/indexer/feature.hpp b/indexer/feature.hpp
index c431e129f8..693e705cfd 100644
--- a/indexer/feature.hpp
+++ b/indexer/feature.hpp
@@ -7,6 +7,8 @@
#include "base/buffer_vector.hpp"
+#include "editor/xml_feature.hpp"
+
#include "std/string.hpp"
@@ -85,7 +87,7 @@ public:
return false;
ParseCommon();
- m_params.name.ForEachRef(functor);
+ m_params.name.ForEachRef(forward<T>(functor));
return true;
}
@@ -152,6 +154,11 @@ class FeatureType : public FeatureBase
public:
void Deserialize(feature::LoaderBase * pLoader, TBuffer buffer);
+ static FeatureType FromXML(string const & xml);
+ static FeatureType FromXML(editor::XMLFeature const & xml);
+
+ editor::XMLFeature ToXML() const;
+
inline void SetID(FeatureID const & id) { m_id = id; }
inline FeatureID GetID() const { return m_id; }