1#ifndef OSMSCOUT_FEATURE_PHONE_FEATURE_H
2#define OSMSCOUT_FEATURE_PHONE_FEATURE_H
54 std::string
GetLabel(
const Locale &,
size_t )
const override
59 void Read(FileScanner& scanner)
override;
60 void Write(FileWriter& writer)
override;
70 TagId tagContactPhone;
71 TagId tagContactMobile;
75 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 TypeFeature.h:41
std::string GetName() const override
size_t GetValueAlignment() const override
static const char *const NAME
Definition PhoneFeature.h:75
static const size_t NUMBER_LABEL_INDEX
Definition PhoneFeature.h:81
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
size_t GetValueSize() const override
FeatureValue * AllocateValue(void *buffer) override
static const char *const NUMBER_LABEL
Definition PhoneFeature.h:78
PhoneFeatureValue(const std::string &phone)
Definition PhoneFeature.h:38
PhoneFeatureValue & operator=(const FeatureValue &other) override
void Read(FileScanner &scanner) override
void Write(FileWriter &writer) override
PhoneFeatureValue()=default
void SetPhone(const std::string_view &phone)
Definition PhoneFeature.h:44
std::string GetPhone() const
Definition PhoneFeature.h:49
bool operator==(const FeatureValue &other) const override
std::string GetLabel(const Locale &, size_t) const override
Definition PhoneFeature.h:54
Definition TagErrorReporter.h:33
std::unordered_map< TagId, std::string > TagMap
Definition Tag.h:41
uint16_t TagId
Definition Tag.h:39