Updraft  1.0
Open source glider flight visualisation tool.
Updraft::Cup::CupFile Class Reference

Stores and encapsulates data of the SeeYou cup file. More...

#include <cup.h>

List of all members.

Public Member Functions

QString getFileName () const
QList< TPEntrygetTPEntries () 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< TPEntryturnPoints
QList< TaskEntrytasks

Friends

class CupLoader

Detailed Description

Stores and encapsulates data of the SeeYou cup file.

Cup file is loaded by the CupLoader. Provides access to the loaded data.


Constructor & Destructor Documentation

Updraft::Cup::CupFile::CupFile ( ) [inline, private]

The new instance can be created only by CupLoader.


Member Function Documentation

void Updraft::Cup::CupFile::addTaskEntry ( const TaskEntry task) [private]

Adds task Used by CupLoader during building process.

Parameters:
taska 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.

Parameters:
tpa reference to the struct containing tp data
Returns:
A file name with full path.
Returns:
A list of all turn-points.
void Updraft::Cup::CupFile::setFileName ( const QString &  name) [private]

Sets the file name.

Used by CupLoader during building process.

Parameters:
namea cup file name (with full path)

Friends And Related Function Documentation

friend class CupLoader [friend]

Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines