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

#include <TypeFeatures.h>

+ Inheritance diagram for osmscout::AccessFeatureValue:

Public Types

enum  Access : uint8_t {
  footForward = 1u << 0u, footBackward = 1u << 1u, bicycleForward = 1u << 2u, bicycleBackward = 1u << 3u,
  carForward = 1u << 4u, carBackward = 1u << 5u, onewayForward = 1u << 6u, onewayBackward = 1u << 7u
}
 

Public Member Functions

 AccessFeatureValue ()
 
 AccessFeatureValue (uint8_t access)
 
bool CanRoute () const
 
bool CanRoute (Vehicle vehicle) const
 
bool CanRoute (VehicleMask vehicleMask) const
 
bool CanRouteBackward () const
 
bool CanRouteBackward (Vehicle vehicle) const
 
bool CanRouteBicycle () const
 
bool CanRouteBicycleBackward () const
 
bool CanRouteBicycleForward () const
 
bool CanRouteCar () const
 
bool CanRouteCarBackward () const
 
bool CanRouteCarForward () const
 
bool CanRouteFoot () const
 
bool CanRouteFootBackward () const
 
bool CanRouteFootForward () const
 
bool CanRouteForward () const
 
bool CanRouteForward (Vehicle vehicle) const
 
uint8_t GetAccess ()
 
bool IsOneway () const
 
bool IsOnewayBackward () const
 
bool IsOnewayForward () const
 
AccessFeatureValueoperator= (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 SetAccess (uint8_t access)
 
void Write (FileWriter &writer) override
 Write the FeatureValue to disk. More...
 
- Public Member Functions inherited from osmscout::FeatureValue
 FeatureValue ()
 
virtual std::string GetLabel (size_t) const
 
virtual bool IsFlagSet (size_t) const
 
virtual bool operator!= (const FeatureValue &other) const
 
virtual ~FeatureValue ()=default
 

Member Enumeration Documentation

Enumerator
footForward 
footBackward 
bicycleForward 
bicycleBackward 
carForward 
carBackward 
onewayForward 
onewayBackward 

Constructor & Destructor Documentation

osmscout::AccessFeatureValue::AccessFeatureValue ( )
inline
osmscout::AccessFeatureValue::AccessFeatureValue ( uint8_t  access)
inlineexplicit

Member Function Documentation

bool osmscout::AccessFeatureValue::CanRoute ( ) const
inline
bool osmscout::AccessFeatureValue::CanRoute ( Vehicle  vehicle) const
inline
bool osmscout::AccessFeatureValue::CanRoute ( VehicleMask  vehicleMask) const
inline
bool osmscout::AccessFeatureValue::CanRouteBackward ( ) const
inline
bool osmscout::AccessFeatureValue::CanRouteBackward ( Vehicle  vehicle) const
inline
bool osmscout::AccessFeatureValue::CanRouteBicycle ( ) const
inline
bool osmscout::AccessFeatureValue::CanRouteBicycleBackward ( ) const
inline
bool osmscout::AccessFeatureValue::CanRouteBicycleForward ( ) const
inline
bool osmscout::AccessFeatureValue::CanRouteCar ( ) const
inline
bool osmscout::AccessFeatureValue::CanRouteCarBackward ( ) const
inline
bool osmscout::AccessFeatureValue::CanRouteCarForward ( ) const
inline
bool osmscout::AccessFeatureValue::CanRouteFoot ( ) const
inline
bool osmscout::AccessFeatureValue::CanRouteFootBackward ( ) const
inline
bool osmscout::AccessFeatureValue::CanRouteFootForward ( ) const
inline
bool osmscout::AccessFeatureValue::CanRouteForward ( ) const
inline
bool osmscout::AccessFeatureValue::CanRouteForward ( Vehicle  vehicle) const
inline
uint8_t osmscout::AccessFeatureValue::GetAccess ( )
inline
bool osmscout::AccessFeatureValue::IsOneway ( ) const
inline
bool osmscout::AccessFeatureValue::IsOnewayBackward ( ) const
inline
bool osmscout::AccessFeatureValue::IsOnewayForward ( ) const
inline
AccessFeatureValue & osmscout::AccessFeatureValue::operator= ( const FeatureValue other)
overridevirtual

Reimplemented from osmscout::FeatureValue.

bool osmscout::AccessFeatureValue::operator== ( const FeatureValue other) const
overridevirtual
void osmscout::AccessFeatureValue::Read ( FileScanner scanner)
overridevirtual

Read the value of the Feature from the FileScanner.

Exceptions
IOException

Reimplemented from osmscout::FeatureValue.

References osmscout::FileScanner::Read().

void osmscout::AccessFeatureValue::SetAccess ( uint8_t  access)
inline
void osmscout::AccessFeatureValue::Write ( FileWriter writer)
overridevirtual

Write the FeatureValue to disk.

Exceptions
IOException.

Reimplemented from osmscout::FeatureValue.

References osmscout::FileWriter::Write().


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