|
Updraft
1.0
Open source glider flight visualisation tool.
|
Performs loading of SeeYou cup files. More...
#include <cup.h>

Public Member Functions | |
| CupLoader () | |
| CupFile * | loadFile (const QString &name) |
| Loads file from disk. | |
Protected Types | |
| enum | LoadingState { LOADING_HEADER, LOADING_TPS, LOADING_TASKS, UNDEFINED, DONE, ERROR } |
| Specifies inner state of the loading process. More... | |
Protected Member Functions | |
| void | parseLine (const QString &strLine) |
| Parses one line stored in QByteArray. | |
| void | parseLatitude (TPEntry &tp, const QString &latitude) |
| Parses latitude entry. | |
| void | parseLongitude (TPEntry &tp, const QString &longitude) |
| Parses longitude entry. | |
| void | parseElevation (TPEntry &tp, const QString &elevation) |
| Parses elevation entry. | |
| void | parseTP (const QString &strLine) |
| Parses line containing turn-point definition. | |
| void | parseTask (const QString &strLine) |
| Parses line containing task declaration. | |
Protected Attributes | |
| LoadingState | state |
| CupFile * | cupFile |
Performs loading of SeeYou cup files.
Creates CupFile instances.
enum Updraft::Cup::CupLoader::LoadingState [protected] |
| CupFile * Updraft::Cup::CupLoader::loadFile | ( | const QString & | name | ) |
Loads file from disk.
| name | a name of the file (with full path) |
| void Updraft::Cup::CupLoader::parseElevation | ( | TPEntry & | tp, |
| const QString & | elevation | ||
| ) | [protected] |
Parses elevation entry.
Supports both feets and meters.
| tp | destination instance of TPEntry |
| elevation | a string storing elevation in cup format |
| void Updraft::Cup::CupLoader::parseLatitude | ( | TPEntry & | tp, |
| const QString & | latitude | ||
| ) | [protected] |
Parses latitude entry.
| tp | destination instance of TPEntry |
| latitude | a string storing latitude in cup format |
| void Updraft::Cup::CupLoader::parseLine | ( | const QString & | strLine | ) | [protected] |
Parses one line stored in QByteArray.
| strLine | a string storing one line of the file |
| void Updraft::Cup::CupLoader::parseLongitude | ( | TPEntry & | tp, |
| const QString & | longitude | ||
| ) | [protected] |
Parses longitude entry.
| tp | destination instance of TPEntry |
| longitude | a string storing longitude in cup format |
| void Updraft::Cup::CupLoader::parseTask | ( | const QString & | strLine | ) | [protected] |
Parses line containing task declaration.
| strLine | a string storing one line of the file |
| void Updraft::Cup::CupLoader::parseTP | ( | const QString & | strLine | ) | [protected] |
Parses line containing turn-point definition.
| strLine | a string storing one line of the file |
CupFile* Updraft::Cup::CupLoader::cupFile [protected] |
LoadingState Updraft::Cup::CupLoader::state [protected] |