|
libosmscout 0.1
|
Representation of a public transport route. More...
#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 class | PlatformType : uint8_t { normal = 0 , entryOnly = 1 , exitOnly = 2 } |
| The platform of a halt can be of one of different types. More... | |
| enum class | StopType : uint8_t { normal = 0 , entryOnly = 1 , 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< Variant > | variants |
Representation of a public transport route.
|
strong |
|
strong |
|
inlinedefault |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void osmscout::PTRoute::Read | ( | const TypeConfig & | typeConfig, |
| FileScanner & | scanner | ||
| ) |
References osmscout::FileScanner::GetPos(), osmscout::TypeConfig::GetTypeInfo(), osmscout::FileScanner::ReadColor(), osmscout::FileScanner::ReadObjectFileRef(), osmscout::FileScanner::ReadString(), osmscout::FileScanner::ReadUInt16(), osmscout::FileScanner::ReadUInt32Number(), osmscout::FileScanner::ReadUInt8(), and variants.
| void osmscout::PTRoute::SetColor | ( | const Color & | color | ) |
| void osmscout::PTRoute::SetName | ( | const std::string & | name | ) |
| void osmscout::PTRoute::SetNetwork | ( | const std::string & | network | ) |
| void osmscout::PTRoute::SetOperator | ( | const std::string & | operatorName | ) |
| void osmscout::PTRoute::SetRef | ( | const std::string & | ref | ) |
| void osmscout::PTRoute::SetType | ( | const TypeInfoRef & | type | ) |
| void osmscout::PTRoute::Write | ( | const TypeConfig & | typeConfig, |
| FileWriter & | writer | ||
| ) | const |
References variants, osmscout::FileWriter::Write(), and osmscout::FileWriter::WriteNumber().