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 {
  footForward = 1 << 0, footBackward = 1 << 1, bicycleForward = 1 << 2, bicycleBackward = 1 << 3,
  carForward = 1 << 4, carBackward = 1 << 5, onewayForward = 1 << 6, onewayBackward = 1 << 7
}
 

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
 
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 ()=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)
inline

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
FeatureValue & osmscout::AccessFeatureValue::operator= ( const FeatureValue other)
virtual

Reimplemented from osmscout::FeatureValue.

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

Read the value of the Feature from the FileScanner.

Exceptions
IOException

Reimplemented from osmscout::FeatureValue.

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