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

#include <FeeFeature.h>

+ Inheritance diagram for osmscout::FeeFeatureValue:

Public Types

enum  Fee : uint8_t { Fee::Unknown = 0, Fee::Yes = 1, Fee::No = 2, Fee::Donation = 3 }
 

Public Member Functions

 FeeFeatureValue ()=default
 
 FeeFeatureValue (Fee fee)
 
std::string GetCondition () const
 
Fee GetValue () const
 
bool HasCondition () const
 
FeeFeatureValueoperator= (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 SetCondition (const std::string_view &condition)
 
void SetValue (Fee fee)
 
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
 

Member Enumeration Documentation

◆ Fee

enum osmscout::FeeFeatureValue::Fee : uint8_t
strong
Enumerator
Unknown 
Yes 
No 
Donation 

Constructor & Destructor Documentation

◆ FeeFeatureValue() [1/2]

osmscout::FeeFeatureValue::FeeFeatureValue ( )
default

◆ FeeFeatureValue() [2/2]

osmscout::FeeFeatureValue::FeeFeatureValue ( Fee  fee)
inlineexplicit

Member Function Documentation

◆ GetCondition()

std::string osmscout::FeeFeatureValue::GetCondition ( ) const
inline

◆ GetValue()

Fee osmscout::FeeFeatureValue::GetValue ( ) const
inline

◆ HasCondition()

bool osmscout::FeeFeatureValue::HasCondition ( ) const
inline

◆ operator=()

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

Reimplemented from osmscout::FeatureValue.

◆ operator==()

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

◆ Read()

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

◆ SetCondition()

void osmscout::FeeFeatureValue::SetCondition ( const std::string_view &  condition)
inline

◆ SetValue()

void osmscout::FeeFeatureValue::SetValue ( Fee  fee)
inline

◆ Write()

void osmscout::FeeFeatureValue::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: