libosmscout  0.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules
osmscout::AdminLevelFeatureValue Class Reference

#include <AdminLevelFeature.h>

+ Inheritance diagram for osmscout::AdminLevelFeatureValue:

Public Member Functions

 AdminLevelFeatureValue ()=default
 
 AdminLevelFeatureValue (uint8_t adminLevel, const std::string &isIn)
 
uint8_t GetAdminLevel () const
 
std::string GetIsIn () const
 
AdminLevelFeatureValueoperator= (const FeatureValue &other) override
 
bool operator== (const FeatureValue &other) const override
 
void Read (FileScanner &scanner) override
 Read the value of the Feature from the FileScanner. More...
 
void SetAdminLevel (uint8_t adminLevel)
 
void SetIsIn (const std::string_view &isIn)
 
void Write (FileWriter &writer) override
 Write the FeatureValue to disk. More...
 
- Public Member Functions inherited from osmscout::FeatureValue
 FeatureValue ()=default
 
 FeatureValue (const FeatureValue &featureValue)=default
 
virtual std::string GetLabel (const Locale &, size_t) const
 
virtual bool IsFlagSet (size_t) const
 
virtual bool operator!= (const FeatureValue &other) const
 
virtual ~FeatureValue ()=default
 

Constructor & Destructor Documentation

◆ AdminLevelFeatureValue() [1/2]

osmscout::AdminLevelFeatureValue::AdminLevelFeatureValue ( )
default

◆ AdminLevelFeatureValue() [2/2]

osmscout::AdminLevelFeatureValue::AdminLevelFeatureValue ( uint8_t  adminLevel,
const std::string &  isIn 
)
inline

Member Function Documentation

◆ GetAdminLevel()

uint8_t osmscout::AdminLevelFeatureValue::GetAdminLevel ( ) const
inline

◆ GetIsIn()

std::string osmscout::AdminLevelFeatureValue::GetIsIn ( ) const
inline

◆ operator=()

AdminLevelFeatureValue & osmscout::AdminLevelFeatureValue::operator= ( const FeatureValue other)
overridevirtual

Reimplemented from osmscout::FeatureValue.

◆ operator==()

bool osmscout::AdminLevelFeatureValue::operator== ( const FeatureValue other) const
overridevirtual

◆ Read()

void osmscout::AdminLevelFeatureValue::Read ( FileScanner scanner)
overridevirtual

◆ SetAdminLevel()

void osmscout::AdminLevelFeatureValue::SetAdminLevel ( uint8_t  adminLevel)
inline

◆ SetIsIn()

void osmscout::AdminLevelFeatureValue::SetIsIn ( const std::string_view &  isIn)
inline

◆ Write()

void osmscout::AdminLevelFeatureValue::Write ( FileWriter writer)
overridevirtual

Write the FeatureValue to disk.

Exceptions
IOException.

Implements osmscout::FeatureValue.

References osmscout::FileWriter::Write().


The documentation for this class was generated from the following files: