1#ifndef OSMSCOUT_FEATURE_ADMIN_LEVEL_FEATURE_H
2#define OSMSCOUT_FEATURE_ADMIN_LEVEL_FEATURE_H
40 const std::string& isIn)
41 : adminLevel(adminLevel),
49 this->adminLevel=adminLevel;
52 void SetIsIn(
const std::string_view& isIn)
67 void Read(FileScanner& scanner)
override;
68 void Write(FileWriter& writer)
override;
82 static const char*
const NAME;
94 const TagRegistry& tagRegistry,
95 const FeatureInstance& feature,
96 const ObjectOSMRef&
object,
98 FeatureValueBuffer& buffer)
const override;
#define OSMSCOUT_API
Definition CoreImportExport.h:45
Definition AdminLevelFeature.h:75
void Parse(TagErrorReporter &reporter, const TagRegistry &tagRegistry, const FeatureInstance &feature, const ObjectOSMRef &object, const TagMap &tags, FeatureValueBuffer &buffer) const override
static const char *const NAME
Definition AdminLevelFeature.h:82
size_t GetValueSize() const override
std::string GetName() const override
void Initialize(TagRegistry &tagRegistry) override
size_t GetValueAlignment() const override
FeatureValue * AllocateValue(void *buffer) override
AdminLevelFeatureValue(uint8_t adminLevel, const std::string &isIn)
Definition AdminLevelFeature.h:39
AdminLevelFeatureValue()=default
void SetAdminLevel(uint8_t adminLevel)
Definition AdminLevelFeature.h:47
AdminLevelFeatureValue & operator=(const FeatureValue &other) override
void Read(FileScanner &scanner) override
std::string GetIsIn() const
Definition AdminLevelFeature.h:62
void SetIsIn(const std::string_view &isIn)
Definition AdminLevelFeature.h:52
bool operator==(const FeatureValue &other) const override
void Write(FileWriter &writer) override
uint8_t GetAdminLevel() const
Definition AdminLevelFeature.h:57
Definition TypeFeature.h:41
Definition FeatureReader.h:143
Definition TagErrorReporter.h:33
FeatureValueReader< AdminLevelFeature, AdminLevelFeatureValue > AdminLevelFeatureValueReader
Definition AdminLevelFeature.h:101
std::unordered_map< TagId, std::string > TagMap
Definition Tag.h:41
uint16_t TagId
Definition Tag.h:39