openPilotLog
AFlightEntry Class Reference
Inheritance diagram for AFlightEntry:
AEntry

Public Types

enum  pilotPosition { pic, secondPilot, thirdPilot }
 

Public Member Functions

 AFlightEntry (RowId_T row_id)
 
 AFlightEntry (RowData_T table_data)
 
 AFlightEntry (const AFlightEntry &pe)=default
 
AFlightEntryoperator= (const AFlightEntry &pe)=default
 
const QString summary ()
 Returs a summary of the flight data, if struct holds data. More...
 
const QString getRegistration ()
 Returns the tails' registration from the database.
 
const QString getPilotName (pilotPosition)
 Returns the pilots name from the Database. More...
 
- Public Member Functions inherited from AEntry
 AEntry (const AEntry &)=default
 
AEntryoperator= (const AEntry &)=default
 
 AEntry (DataPosition position_)
 
 AEntry (RowData_T table_data)
 
 AEntry (DataPosition position_, RowData_T table_data)
 
void setData (RowData_T table_data)
 
void setPosition (DataPosition position_)
 
const DataPositiongetPosition ()
 
const RowData_T & getData ()
 

Additional Inherited Members

- Public Attributes inherited from AEntry
RowData_T tableData
 
- Protected Attributes inherited from AEntry
DataPosition position
 

Member Function Documentation

◆ getPilotName()

const QString AFlightEntry::getPilotName ( pilotPosition  pilot_)

Returns the pilots name from the Database.

Parameters
pilot_number- 1=pic, 2=second Pilot, 3 = third Pilot
Returns
"Lastname, Firstname"

◆ summary()

const QString AFlightEntry::summary ( )

Returs a summary of the flight data, if struct holds data.

Returns
"doft, dept, tofb, dest, tonb"

The documentation for this class was generated from the following files: