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

#include <FromToFeature.h>

+ Inheritance diagram for osmscout::FromToFeatureValue:

Public Member Functions

 FromToFeatureValue ()=default
 
 FromToFeatureValue (const FromToFeatureValue &featureValue)=default
 
 FromToFeatureValue (const std::string_view &from, const std::string_view &to)
 
const std::string & GetFrom () const
 
std::string GetLabel (const Locale &, size_t) const override
 
const std::string & GetTo () const
 
FromToFeatureValueoperator= (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 SetFrom (const std::string_view &from)
 
void SetTo (const std::string_view &to)
 
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 bool IsFlagSet (size_t) const
 
virtual bool operator!= (const FeatureValue &other) const
 
virtual ~FeatureValue ()=default
 

Constructor & Destructor Documentation

◆ FromToFeatureValue() [1/3]

osmscout::FromToFeatureValue::FromToFeatureValue ( )
default

◆ FromToFeatureValue() [2/3]

osmscout::FromToFeatureValue::FromToFeatureValue ( const FromToFeatureValue featureValue)
default

◆ FromToFeatureValue() [3/3]

osmscout::FromToFeatureValue::FromToFeatureValue ( const std::string_view &  from,
const std::string_view &  to 
)
inlineexplicit

Member Function Documentation

◆ GetFrom()

const std::string& osmscout::FromToFeatureValue::GetFrom ( ) const
inline

◆ GetLabel()

std::string osmscout::FromToFeatureValue::GetLabel ( const Locale ,
size_t   
) const
inlineoverridevirtual

Reimplemented from osmscout::FeatureValue.

◆ GetTo()

const std::string& osmscout::FromToFeatureValue::GetTo ( ) const
inline

◆ operator=()

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

Reimplemented from osmscout::FeatureValue.

◆ operator==()

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

◆ Read()

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

Read the value of the Feature from the FileScanner.

Exceptions
IOException

Implements osmscout::FeatureValue.

References osmscout::FileScanner::ReadString().

◆ SetFrom()

void osmscout::FromToFeatureValue::SetFrom ( const std::string_view &  from)
inline

◆ SetTo()

void osmscout::FromToFeatureValue::SetTo ( const std::string_view &  to)
inline

◆ Write()

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