|
Updraft
1.0
Open source glider flight visualisation tool.
|
Stores and encapsulates data of the SeeYou cup file. More...
#include <cup.h>
Public Member Functions | |
| QString | getFileName () const |
| QList< TPEntry > | getTPEntries () const |
Private Member Functions | |
| CupFile () | |
| The new instance can be created only by CupLoader. | |
| void | setFileName (const QString &name) |
| Sets the file name. | |
| void | addTPEntry (const TPEntry &tp) |
| Adds turn-point. | |
| void | addTaskEntry (const TaskEntry &task) |
| Adds task Used by CupLoader during building process. | |
Private Attributes | |
| QString | fileName |
| QList< TPEntry > | turnPoints |
| QList< TaskEntry > | tasks |
Friends | |
| class | CupLoader |
Stores and encapsulates data of the SeeYou cup file.
Cup file is loaded by the CupLoader. Provides access to the loaded data.
| Updraft::Cup::CupFile::CupFile | ( | ) | [inline, private] |
The new instance can be created only by CupLoader.
| void Updraft::Cup::CupFile::addTaskEntry | ( | const TaskEntry & | task | ) | [private] |
Adds task Used by CupLoader during building process.
| task | a reference to the struct containing task data |
| void Updraft::Cup::CupFile::addTPEntry | ( | const TPEntry & | tp | ) | [private] |
Adds turn-point.
Used by CupLoader during building process.
| tp | a reference to the struct containing tp data |
| QString Updraft::Cup::CupFile::getFileName | ( | ) | const |
| QList< TPEntry > Updraft::Cup::CupFile::getTPEntries | ( | ) | const |
| void Updraft::Cup::CupFile::setFileName | ( | const QString & | name | ) | [private] |
Sets the file name.
Used by CupLoader during building process.
| name | a cup file name (with full path) |
friend class CupLoader [friend] |
QString Updraft::Cup::CupFile::fileName [private] |
QList<TaskEntry> Updraft::Cup::CupFile::tasks [private] |
QList<TPEntry> Updraft::Cup::CupFile::turnPoints [private] |