1#ifndef OSMSCOUT_FEATURE_NAME_SHORT_FEATURE_H
2#define OSMSCOUT_FEATURE_NAME_SHORT_FEATURE_H
33 std::string nameShort;
39 : nameShort(nameShort)
46 this->nameShort=nameShort;
54 std::string
GetLabel(
const Locale &,
size_t )
const override
59 void Read(FileScanner& scanner)
override;
60 void Write(FileWriter& writer)
override;
73 static const char*
const NAME;
92 const TagRegistry& tagRegistry,
93 const FeatureInstance& feature,
94 const ObjectOSMRef&
object,
96 FeatureValueBuffer& buffer)
const override;
#define OSMSCOUT_API
Definition CoreImportExport.h:45
Definition TypeFeature.h:41
Definition FeatureReader.h:143
static const char *const NAME_LABEL
Definition NameShortFeature.h:76
std::string GetName() const override
size_t GetValueSize() const override
void Initialize(TagRegistry &tagRegistry) override
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 NameShortFeature.h:73
size_t GetValueAlignment() const override
FeatureValue * AllocateValue(void *buffer) override
static const size_t NAME_LABEL_INDEX
Definition NameShortFeature.h:79
std::string GetNameShort() const
Definition NameShortFeature.h:49
NameShortFeatureValue(const std::string &nameShort)
Definition NameShortFeature.h:38
bool operator==(const FeatureValue &other) const override
void SetNameShort(const std::string_view &nameShort)
Definition NameShortFeature.h:44
std::string GetLabel(const Locale &, size_t) const override
Definition NameShortFeature.h:54
void Write(FileWriter &writer) override
void Read(FileScanner &scanner) override
NameShortFeatureValue()=default
NameShortFeatureValue & operator=(const FeatureValue &other) override
Definition TagErrorReporter.h:33
std::unordered_map< TagId, std::string > TagMap
Definition Tag.h:41
FeatureValueReader< NameShortFeature, NameShortFeatureValue > NameShortFeatureValueReader
Definition NameShortFeature.h:99
uint16_t TagId
Definition Tag.h:39