Search for usage in LXR

#include <platform.h>

Public Types

enum  Mode {
  Unknown, Rail, LightRail, Subway,
  Tram, Monorail, Bus


QString ifopt
Mode mode
QString name

Public Member Functions

 Platform (const Platform &)
 Platform (Platform &&)
OSM::Element area () const
OSM::Element edge () const
bool hasLevel () const
QString ifopt () const
bool isValid () const
int level () const
QStringList lines () const
Mode mode () const
QString name () const
Platformoperator= (const Platform &)
Platformoperator= (Platform &&)
OSM::Coordinate position () const
const std::vector< PlatformSection > & sections () const
void setArea (OSM::Element area)
void setEdge (OSM::Element edge)
void setIfopt (const QString &ifopt)
void setLevel (int level)
void setLines (QStringList &&lines)
void setMode (Mode mode)
void setName (const QString &name)
void setSections (std::vector< PlatformSection > &&sections)
void setStopPoint (OSM::Element stop)
void setTrack (std::vector< OSM::Element > &&track)
OSM::Element stopPoint () const
QStringList && takeLines ()
std::vector< PlatformSection > && takeSections ()
std::vector< OSM::Element > && takeTrack ()
const std::vector< OSM::Element > & track () const

Static Public Member Functions

static bool isPlausibleName (const QString &name)
static bool isSame (const Platform &lhs, const Platform &rhs, const OSM::DataSet &dataSet)
static Platform merge (const Platform &lhs, const Platform &rhs, const OSM::DataSet &dataSet)
static QString preferredName (const QString &lhs, const QString &rhs)

Detailed Description

A railway platform/track.

Definition at line 56 of file platform.h.

Member Enumeration Documentation

◆ Mode

Transportation mode served by a platform.

Definition at line 109 of file platform.h.

Member Function Documentation

◆ area()

OSM::Element Platform::area ( ) const

The platform area.

This is often shared between multiple tracks.

Definition at line 157 of file platform.cpp.

◆ edge()

OSM::Element Platform::edge ( ) const

The platform edge path.

Definition at line 146 of file platform.cpp.

◆ ifopt()

QString KOSMIndoorMap::Platform::ifopt ( ) const

IFOPT identifier.

◆ isPlausibleName()

bool Platform::isPlausibleName ( const QString name)

Checks if name is a plausible name for a platform.

Definition at line 541 of file platform.cpp.

◆ isSame()

bool Platform::isSame ( const Platform lhs,
const Platform rhs,
const OSM::DataSet dataSet 

Checks if two instances refer to the same platform.

Definition at line 368 of file platform.cpp.

◆ isValid()

bool Platform::isValid ( ) const

Platform has enough data to work with.

Definition at line 98 of file platform.cpp.

◆ level()

int Platform::level ( ) const

Floor level.

Definition at line 114 of file platform.cpp.

◆ lines()

QStringList Platform::lines ( ) const

Names of public transport lines stopping at this platform.

Definition at line 224 of file platform.cpp.

◆ merge()

Platform Platform::merge ( const Platform lhs,
const Platform rhs,
const OSM::DataSet dataSet 

Merge two platform objects.

Definition at line 487 of file platform.cpp.

◆ name()

QString KOSMIndoorMap::Platform::name ( ) const

User-visible name of the platform.

◆ position()

OSM::Coordinate Platform::position ( ) const

A singular position for this platform (typically the stop position).

This can be useful for positining views or labels.

Definition at line 130 of file platform.cpp.

◆ preferredName()

QString Platform::preferredName ( const QString lhs,
const QString rhs 

Returns the preferred platform name given two possible alternatives.

Definition at line 547 of file platform.cpp.

◆ sections()

const std::vector< PlatformSection > & Platform::sections ( ) const

Platform sections.

Definition at line 185 of file platform.cpp.

◆ track()

const std::vector< OSM::Element > & Platform::track ( ) const

The (railway) track this platform is serving.

Definition at line 168 of file platform.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 19 2022 04:06:44 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.