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

#include <TypeFeatures.h>

+ Inheritance diagram for osmscout::AccessRestrictedFeatureValue:

Public Types

enum  Access { foot = 1 << 0, bicycle = 1 << 1, car = 1 << 2 }
 

Public Member Functions

 AccessRestrictedFeatureValue ()
 
 AccessRestrictedFeatureValue (uint8_t access)
 
bool CanAccess () const
 
bool CanAccess (Vehicle vehicle) const
 
bool CanAccess (VehicleMask vehicleMask) const
 
bool CanAccessBicycle () const
 
bool CanAccessCar () const
 
bool CanAccessFoot () const
 
uint8_t GetAccess ()
 
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 SetAccess (uint8_t access)
 
void Write (FileWriter &writer)
 Write the FeatureValue to disk. More...
 
- Public Member Functions inherited from osmscout::FeatureValue
 FeatureValue ()
 
virtual std::string GetLabel () const
 
virtual bool operator!= (const FeatureValue &other) const
 
virtual ~FeatureValue ()
 

Member Enumeration Documentation

Enumerator
foot 
bicycle 
car 

Constructor & Destructor Documentation

osmscout::AccessRestrictedFeatureValue::AccessRestrictedFeatureValue ( )
inline
osmscout::AccessRestrictedFeatureValue::AccessRestrictedFeatureValue ( uint8_t  access)
inline

Member Function Documentation

bool osmscout::AccessRestrictedFeatureValue::CanAccess ( ) const
inline
bool osmscout::AccessRestrictedFeatureValue::CanAccess ( Vehicle  vehicle) const
inline
bool osmscout::AccessRestrictedFeatureValue::CanAccess ( VehicleMask  vehicleMask) const
inline
bool osmscout::AccessRestrictedFeatureValue::CanAccessBicycle ( ) const
inline
bool osmscout::AccessRestrictedFeatureValue::CanAccessCar ( ) const
inline
bool osmscout::AccessRestrictedFeatureValue::CanAccessFoot ( ) const
inline
uint8_t osmscout::AccessRestrictedFeatureValue::GetAccess ( )
inline
FeatureValue & osmscout::AccessRestrictedFeatureValue::operator= ( const FeatureValue other)
virtual

Reimplemented from osmscout::FeatureValue.

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

Read the value of the Feature from the FileScanner.

Exceptions
IOException

Reimplemented from osmscout::FeatureValue.

void osmscout::AccessRestrictedFeatureValue::SetAccess ( uint8_t  access)
inline
void osmscout::AccessRestrictedFeatureValue::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: