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

The address feature stores the house number of an (normally) node or area. More...

#include <TypeFeatures.h>

+ Inheritance diagram for osmscout::AddressFeatureValue:

Public Member Functions

 AddressFeatureValue ()
 
 AddressFeatureValue (const std::string &address)
 
std::string GetAddress () const
 
std::string GetLabel () const
 
FeatureValueoperator= (const FeatureValue &other)
 
bool operator== (const FeatureValue &other) const
 
void Read (FileScanner &scanner)
 Read the value of the Feature from the FileScanner. More...
 
void SetAddress (const std::string &address)
 
void Write (FileWriter &writer)
 Write the FeatureValue to disk. More...
 
- Public Member Functions inherited from osmscout::FeatureValue
 FeatureValue ()
 
virtual bool operator!= (const FeatureValue &other) const
 
virtual ~FeatureValue ()=default
 

Detailed Description

The address feature stores the house number of an (normally) node or area.

Even the data is not stored the address feature checks that a street or place and an house number is stored on the object.

So in effect it stores the house number part of objects that have an address.

Constructor & Destructor Documentation

osmscout::AddressFeatureValue::AddressFeatureValue ( )
inline
osmscout::AddressFeatureValue::AddressFeatureValue ( const std::string &  address)
inline

Member Function Documentation

std::string osmscout::AddressFeatureValue::GetAddress ( ) const
inline
std::string osmscout::AddressFeatureValue::GetLabel ( ) const
inlinevirtual

Reimplemented from osmscout::FeatureValue.

FeatureValue & osmscout::AddressFeatureValue::operator= ( const FeatureValue other)
virtual

Reimplemented from osmscout::FeatureValue.

bool osmscout::AddressFeatureValue::operator== ( const FeatureValue other) const
virtual
void osmscout::AddressFeatureValue::Read ( FileScanner &  scanner)
virtual

Read the value of the Feature from the FileScanner.

Exceptions
IOException

Reimplemented from osmscout::FeatureValue.

void osmscout::AddressFeatureValue::SetAddress ( const std::string &  address)
inline
void osmscout::AddressFeatureValue::Write ( FileWriter &  writer)
virtual

Write the FeatureValue to disk.

Exceptions
IOException.

Reimplemented from osmscout::FeatureValue.


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