Search for usage in LXR

#include <platform.h>

Public Types

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

Public Member Functions

OSM::Element area () const
OSM::Element edge () const
bool hasLevel () const
bool isValid () const
int level () const
Mode mode () const
QString name () const
OSM::Coordinate position () const
const std::vector< PlatformSection > & sections () const
void setArea (OSM::Element area)
void setEdge (OSM::Element edge)
void setLevel (int level)
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
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)

Public Attributes

QStringList lines

Detailed Description

A railway platform/track.

Definition at line 34 of file platform.h.

Member Enumeration Documentation

Transportation mode served by a platform.

Definition at line 80 of file platform.h.

Member Function Documentation

OSM::Element Platform::area ( ) const

The platform area.

This is often shared between multiple tracks.

Definition at line 80 of file platform.cpp.

OSM::Element Platform::edge ( ) const

The platform edge path.

Definition at line 70 of file platform.cpp.

bool Platform::isPlausibleName ( const QString name)

Checks if name is a plausible name for a platform.

Definition at line 424 of file platform.cpp.

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 257 of file platform.cpp.

bool Platform::isValid ( ) const

Platform has enough data to work with.

Definition at line 25 of file platform.cpp.

int Platform::level ( ) const

Floor level.

Definition at line 40 of file platform.cpp.

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

Merge two platform objects.

Definition at line 371 of file platform.cpp.

QString Platform::name ( ) const

User-visible name of the platform.

Definition at line 30 of file platform.cpp.

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 55 of file platform.cpp.

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

Returns the preferred platform name given two possible alternatives.

Definition at line 430 of file platform.cpp.

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

Platform sections.

Definition at line 105 of file platform.cpp.

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

The (railway) track this platform is serving.

Definition at line 90 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-2021 The KDE developers.
Generated on Fri Oct 22 2021 23:03:53 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.