1#ifndef OSMSCOUT_FEATURE_MAX_SPEED_FEATURE_H
2#define OSMSCOUT_FEATURE_MAX_SPEED_FEATURE_H
46 this->maxSpeed=maxSpeed;
54 void Read(FileScanner& scanner)
override;
55 void Write(FileWriter& writer)
override;
65 TagId tagMaxSpeedForward;
66 TagId tagMaxSpeedBackward;
70 static const char*
const NAME;
74 const TagRegistry& tagRegistry,
75 const ObjectOSMRef&
object,
77 const std::string& input,
78 uint8_t& speed)
const;
90 const TagRegistry& tagRegistry,
91 const FeatureInstance& feature,
92 const ObjectOSMRef&
object,
94 FeatureValueBuffer& buffer)
const override;
#define OSMSCOUT_API
Definition CoreImportExport.h:45
Definition TypeFeature.h:41
Definition FeatureReader.h:143
Definition MaxSpeedFeature.h:62
void Initialize(TagRegistry &tagRegistry) override
std::string GetName() const override
size_t GetValueSize() const override
size_t GetValueAlignment() const override
static const char *const NAME
Definition MaxSpeedFeature.h:70
FeatureValue * AllocateValue(void *buffer) override
void Parse(TagErrorReporter &reporter, const TagRegistry &tagRegistry, const FeatureInstance &feature, const ObjectOSMRef &object, const TagMap &tags, FeatureValueBuffer &buffer) const override
bool operator==(const FeatureValue &other) const override
MaxSpeedFeatureValue & operator=(const FeatureValue &other) override
void SetMaxSpeed(uint8_t maxSpeed)
Definition MaxSpeedFeature.h:44
MaxSpeedFeatureValue()=default
MaxSpeedFeatureValue(uint8_t maxSpeed)
Definition MaxSpeedFeature.h:38
void Read(FileScanner &scanner) override
void Write(FileWriter &writer) override
uint8_t GetMaxSpeed() const
Definition MaxSpeedFeature.h:49
Definition TagErrorReporter.h:33
std::unordered_map< TagId, std::string > TagMap
Definition Tag.h:41
FeatureValueReader< MaxSpeedFeature, MaxSpeedFeatureValue > MaxSpeedFeatureValueReader
Definition MaxSpeedFeature.h:97
uint16_t TagId
Definition Tag.h:39