alaCarte Maps
Renderer for OpenStreetMap tiles
geo_object.hpp
Go to the documentation of this file.
1 
21 #pragma once
22 #ifndef GEO_OBJECT_HPP
23 #define GEO_OBJECT_HPP
24 
25 
26 #include "settings.hpp"
27 
28 #include <boost/archive/text_oarchive.hpp>
29 #include <boost/archive/text_iarchive.hpp>
30 
31 #include <boost/serialization/map.hpp>
32 
33 class GeoObject
34 {
35 private:
37 public:
38  GeoObject() = default;
39  GeoObject(const GeoObject& other) = default;
40  GeoObject(GeoObject&& other) = default;
42  virtual ~GeoObject() = default;
43 
46 protected:
47 
48  template<typename Archive>
49  void serialize(Archive &ar, const unsigned int version){
50  ar & tags;
51  }
52 private:
54 };
55 
56 
57 
58 
59 
60 
61 #endif // GEO_OBJECT_HPP
friend class boost::serialization::access
Definition: geo_object.hpp:36
TESTABLE const DataMap< CachedString, CachedString > & getTags() const
Returns a map with key-to-tag-mapping for osm-tags.
Definition: geo_object.cpp:30
void serialize(Archive &ar, const unsigned int version)
Definition: geo_object.hpp:49
GeoObject()=default
DataMap< CachedString, CachedString > tags
Definition: geo_object.hpp:53
#define TESTABLE
Definition: settings.hpp:85
virtual ~GeoObject()=default