alaCarte Maps
Renderer for OpenStreetMap tiles
node.hpp
Go to the documentation of this file.
1 
21 #pragma once
22 #ifndef NODE_HPP
23 #define NODE_HPP
24 
25 #include "settings.hpp"
26 #include "general/geo_object.hpp"
27 
28 class Node : public GeoObject
29 {
30 private:
32 public:
33  Node() = default;
34  Node(const Node& other) = default;
35  Node(Node&& other) = default;
37  virtual ~Node() = default;
38 
39  TESTABLE const FixedPoint& getLocation() const;
40 private:
41  template<typename Archive>
42  void serialize(Archive &ar, const unsigned int version) {
43  GeoObject::serialize(ar, version);
44  ar & location;
45  }
46 private:
48 };
49 
50 
51 
52 
53 
54 #endif
FixedPoint location
Definition: node.hpp:47
virtual ~Node()=default
Definition: node.hpp:28
void serialize(Archive &ar, const unsigned int version)
Definition: geo_object.hpp:49
TESTABLE const FixedPoint & getLocation() const
Definition: node.cpp:43
Node()=default
void serialize(Archive &ar, const unsigned int version)
Definition: node.hpp:42
DataMap< CachedString, CachedString > tags
Definition: geo_object.hpp:53
#define TESTABLE
Definition: settings.hpp:85
friend class boost::serialization::access
Definition: node.hpp:31