# openPilotLog: src/experimental/aflightentry.h Source File

aflightentry.h
#ifndef AFLIGHTENTRY_H
#define AFLIGHTENTRY_H
#include "src/experimental/aentry.h"
#include "src/functions/acalc.h"
namespace experimental {
class AFlightEntry : public AEntry {
public:
AFlightEntry();
AFlightEntry(const AFlightEntry& pe) = default;
AFlightEntry& operator=(const AFlightEntry& pe) = default;
AFlightEntry(int row_id);
AFlightEntry(TableData table_data);
enum pilot { pic, sic, thirdPilot };
const QString summary();
const QString getRegistration();
const QString getPilotName(pilot);
};
} // namespace experimental
#endif // AFLIGHTENTRY_H
experimental
Temporary namespace for experimental features. Will be removed in later versions.
Definition: aaircraftentry.cpp:20
experimental::AEntry
The Entry class encapsulates table metadata(table name, row id) and data for new and existing entries...
Definition: aentry.h:42
experimental::AFlightEntry
Definition: aflightentry.h:9
experimental::AFlightEntry::summary
const QString summary()
Returs a summary of the flight data, if struct holds data.
Definition: aflightentry.cpp:18
experimental::AFlightEntry::getRegistration
const QString getRegistration()
Returns the tails' registration from the database.
Definition: aflightentry.cpp:33
experimental::AFlightEntry::getPilotName
const QString getPilotName(pilot)
Returns the pilots name from the Database.
Definition: aflightentry.cpp:52