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

#include <TurnRestriction.h>

Public Types

enum  Type { Allow = 0, Forbit = 1 }
 

Public Member Functions

OSMId GetFrom () const
 
OSMId GetTo () const
 
Type GetType () const
 
OSMId GetVia () const
 
void Read (FileScanner &scanner)
 Reads the TurnRestriction data from the given FileScanner. More...
 
void SetFrom (Id from)
 
void SetTo (OSMId to)
 
 TurnRestriction ()=default
 
 TurnRestriction (Type type, OSMId from, OSMId via, OSMId to)
 
void Write (FileWriter &writer) const
 Write the TurnRestriction data to the given FileWriter. More...
 

Member Enumeration Documentation

◆ Type

Enumerator
Allow 
Forbit 

Constructor & Destructor Documentation

◆ TurnRestriction() [1/2]

osmscout::TurnRestriction::TurnRestriction ( )
default

◆ TurnRestriction() [2/2]

osmscout::TurnRestriction::TurnRestriction ( Type  type,
OSMId  from,
OSMId  via,
OSMId  to 
)
inline

Member Function Documentation

◆ GetFrom()

OSMId osmscout::TurnRestriction::GetFrom ( ) const
inline

◆ GetTo()

OSMId osmscout::TurnRestriction::GetTo ( ) const
inline

◆ GetType()

Type osmscout::TurnRestriction::GetType ( ) const
inline

◆ GetVia()

OSMId osmscout::TurnRestriction::GetVia ( ) const
inline

◆ Read()

void osmscout::TurnRestriction::Read ( FileScanner scanner)

◆ SetFrom()

void osmscout::TurnRestriction::SetFrom ( Id  from)
inline

◆ SetTo()

void osmscout::TurnRestriction::SetTo ( OSMId  to)
inline

◆ Write()

void osmscout::TurnRestriction::Write ( FileWriter writer) const

Write the TurnRestriction data to the given FileWriter.

Exceptions
IOException

References osmscout::FileWriter::WriteNumber().


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