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

#include <PublicTransport.h>

Classes

class  Platform
 A route variant consists of a number of platforms. More...
 
class  Stop
 A route variant consists of a number of halts. More...
 
class  Variant
 A route can have multiple variants. More...
 

Public Types

enum  PlatformType : uint8_t { PlatformType::normal = 0, PlatformType::entryOnly = 1, PlatformType::exitOnly = 2 }
 The platform of a halt can be of one of different types. More...
 
enum  StopType : uint8_t { StopType::normal = 0, StopType::entryOnly = 1, StopType::exitOnly = 2 }
 A halt can be of one of different types. More...
 

Public Member Functions

Color GetColor () const
 
FileOffset GetFileOffset () const
 
std::string GetName () const
 
std::string GetNetwork () const
 
FileOffset GetNextFileOffset () const
 
std::string GetOperator () const
 
std::string GetRef () const
 
TypeInfoRef GetType () const
 
 PTRoute ()=default
 
void Read (const TypeConfig &typeConfig, FileScanner &scanner)
 
void SetColor (const Color &color)
 
void SetName (const std::string &name)
 
void SetNetwork (const std::string &network)
 
void SetOperator (const std::string &operatorName)
 
void SetRef (const std::string &ref)
 
void SetType (const TypeInfoRef &type)
 
void Write (const TypeConfig &typeConfig, FileWriter &writer) const
 

Public Attributes

std::vector< Variantvariants
 

Detailed Description

Representation of a public transport route

Member Enumeration Documentation

◆ PlatformType

enum osmscout::PTRoute::PlatformType : uint8_t
strong

The platform of a halt can be of one of different types.

Enumerator
normal 
entryOnly 
exitOnly 

◆ StopType

enum osmscout::PTRoute::StopType : uint8_t
strong

A halt can be of one of different types.

Enumerator
normal 
entryOnly 
exitOnly 

Constructor & Destructor Documentation

◆ PTRoute()

osmscout::PTRoute::PTRoute ( )
inlinedefault

Member Function Documentation

◆ GetColor()

Color osmscout::PTRoute::GetColor ( ) const
inline

◆ GetFileOffset()

FileOffset osmscout::PTRoute::GetFileOffset ( ) const
inline

◆ GetName()

std::string osmscout::PTRoute::GetName ( ) const
inline

◆ GetNetwork()

std::string osmscout::PTRoute::GetNetwork ( ) const
inline

◆ GetNextFileOffset()

FileOffset osmscout::PTRoute::GetNextFileOffset ( ) const
inline

◆ GetOperator()

std::string osmscout::PTRoute::GetOperator ( ) const
inline

◆ GetRef()

std::string osmscout::PTRoute::GetRef ( ) const
inline

◆ GetType()

TypeInfoRef osmscout::PTRoute::GetType ( ) const
inline

◆ Read()

◆ SetColor()

void osmscout::PTRoute::SetColor ( const Color color)

◆ SetName()

void osmscout::PTRoute::SetName ( const std::string &  name)

◆ SetNetwork()

void osmscout::PTRoute::SetNetwork ( const std::string &  network)

◆ SetOperator()

void osmscout::PTRoute::SetOperator ( const std::string &  operatorName)

◆ SetRef()

void osmscout::PTRoute::SetRef ( const std::string &  ref)

◆ SetType()

void osmscout::PTRoute::SetType ( const TypeInfoRef type)

◆ Write()

void osmscout::PTRoute::Write ( const TypeConfig typeConfig,
FileWriter writer 
) const

Member Data Documentation

◆ variants

std::vector<Variant> osmscout::PTRoute::variants

Referenced by Read(), and Write().


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