1 #ifndef OSMSCOUT_IMPORT_RAWNODE_H 2 #define OSMSCOUT_IMPORT_RAWNODE_H 24 #include <unordered_map> 43 FeatureValueBuffer featureValueBuffer;
56 return featureValueBuffer.GetType();
66 return coord.GetLat();
71 return coord.GetLon();
76 return featureValueBuffer.GetType()->GetFeatureCount();
81 return featureValueBuffer.HasFeature(idx);
84 inline const FeatureInstance&
GetFeature(
size_t idx)
const 86 return featureValueBuffer.GetType()->GetFeature(idx);
91 return featureValueBuffer.GetValue(idx);
96 return featureValueBuffer;
104 inline bool IsSame(
const RawNode& other)
const 106 return coord==other.coord;
109 inline bool IsEqual(
const RawNode& other)
const 111 return id==other.id || coord==other.coord;
114 void SetId(
OSMId id);
117 void SetCoord(
const GeoCoord& coord);
119 void UnsetFeature(
size_t idx);
122 const TagRegistry& tagRegistry,
124 void Read(
const TypeConfig& typeConfig,
125 FileScanner& scanner);
126 void Write(
const TypeConfig& typeConfig,
127 FileWriter& writer)
const;
bool IsEqual(const RawNode &other) const
Definition: RawNode.h:109
bool IsSame(const RawNode &other) const
Definition: RawNode.h:104
const FeatureValueBuffer & GetFeatureValueBuffer() const
Definition: RawNode.h:94
bool IsIdentical(const RawNode &other) const
Definition: RawNode.h:99
int64_t OSMId
Definition: OSMScoutTypes.h:34
TypeInfoRef GetType() const
Definition: RawNode.h:54
const GeoCoord & GetCoords() const
Definition: RawNode.h:59
bool HasFeature(size_t idx) const
Definition: RawNode.h:79
size_t GetFeatureCount() const
Definition: RawNode.h:74
Definition: TypeFeature.h:40
FeatureValue * GetFeatureValue(size_t idx) const
Definition: RawNode.h:89
#define CLASS_FINAL
Definition: Compiler.h:26
Definition: TagErrorReporter.h:32
OSMId GetId() const
Definition: RawNode.h:49
double GetLon() const
Definition: RawNode.h:69
std::shared_ptr< TypeInfo > TypeInfoRef
Definition: TypeConfig.h:58
const FeatureInstance & GetFeature(size_t idx) const
Definition: RawNode.h:84
std::unordered_map< TagId, std::string > TagMap
Definition: Tag.h:41
double GetLat() const
Definition: RawNode.h:64
std::shared_ptr< RawNode > RawNodeRef
Definition: RawNode.h:130