|
Updraft
1.0
Open source glider flight visualisation tool.
|
Adapter for cup turn-points file Use this class for loading turn-points from cup file. More...
#include <tpfilecupadapter.h>


Public Member Functions | |
| virtual | ~TPFileCupAdapter () |
| QString | getFileName () const |
| QString | getFilePath () const |
| const TTPList & | getTurnPoints () const |
Static Public Member Functions | |
| static TPFileCupAdapter * | load (const QString &filename) |
| Loads turn-points from specified cup file. | |
Private Member Functions | |
| TPFileCupAdapter (const Cup::CupFile *cup) | |
| Disallows direct construction and copying from outside. | |
| TPFileCupAdapter (const TPFileCupAdapter &) | |
| void | convertCupTPEntry (TurnPoint *tp, const Cup::TPEntry &tpEntry) |
| Converts cup file turn-point entry into struct TurnPoint. | |
| float | parseLength (const QString &text) |
| Parses the string containing the length with units to float in meters. | |
Private Attributes | |
| const Cup::CupFile * | cupFile |
| TTPList | tpList |
Adapter for cup turn-points file Use this class for loading turn-points from cup file.
| Updraft::TPFileCupAdapter::~TPFileCupAdapter | ( | ) | [virtual] |
| Updraft::TPFileCupAdapter::TPFileCupAdapter | ( | const Cup::CupFile * | cup | ) | [explicit, private] |
Disallows direct construction and copying from outside.
| Updraft::TPFileCupAdapter::TPFileCupAdapter | ( | const TPFileCupAdapter & | ) | [inline, private] |
| void Updraft::TPFileCupAdapter::convertCupTPEntry | ( | TurnPoint * | tp, |
| const Cup::TPEntry & | tpEntry | ||
| ) | [private] |
| QString Updraft::TPFileCupAdapter::getFileName | ( | ) | const [virtual] |
Implements Updraft::TPFile.
| QString Updraft::TPFileCupAdapter::getFilePath | ( | ) | const [virtual] |
Implements Updraft::TPFile.
| const TTPList & Updraft::TPFileCupAdapter::getTurnPoints | ( | ) | const [virtual] |
Implements Updraft::TPFile.
| TPFileCupAdapter * Updraft::TPFileCupAdapter::load | ( | const QString & | filename | ) | [static] |
Loads turn-points from specified cup file.
Use this method for creating TPFileCupAdapter instances.
| filename | full path of a cup file |
| float Updraft::TPFileCupAdapter::parseLength | ( | const QString & | text | ) | [private] |
Parses the string containing the length with units to float in meters.
const Cup::CupFile* Updraft::TPFileCupAdapter::cupFile [private] |
TTPList Updraft::TPFileCupAdapter::tpList [private] |