KPublicTransport::PlatformLayout

Search for usage in LXR

KPublicTransport::PlatformLayout Class Reference

#include <platformlayout.h>

Static Public Member Functions

static QString sectionsForClass (const Stopover &stopover, VehicleSection::Class cls)
 
static QString sectionsForVehicle (const Stopover &stopover)
 
static QString sectionsForVehicleSection (const Stopover &stopover, const QString &coachName)
 

Detailed Description

Methods for determining positions on a platform.

The sectionsFor* method return a platform section range expression consumable by e.g. KOSMIndoorMaps.

Definition at line 22 of file platformlayout.h.

Member Function Documentation

◆ sectionsForClass()

QString PlatformLayout::sectionsForClass ( const Stopover & stopover,
VehicleSection::Class cls )
static

Returns all platform sections the given vehicle has coaches of class @cls at.

Definition at line 83 of file platformlayout.cpp.

◆ sectionsForVehicle()

QString PlatformLayout::sectionsForVehicle ( const Stopover & stopover)
static

Returns all platform sections the given vehicle has coaches stopping at.

This excludes powercars and engines.

Definition at line 70 of file platformlayout.cpp.

◆ sectionsForVehicleSection()

QString PlatformLayout::sectionsForVehicleSection ( const Stopover & stopover,
const QString & coachName )
static

Returns all platform sections the coach coachName stops at.

Definition at line 95 of file platformlayout.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:57:19 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.