Logbokk fligth type
This commit is contained in:
1 parent
a50d89f4aa
commit
52da1262b0
5 files changed
+13
-87
No files matched your search
@@ -15,10 +15,10 @@ namespace file
|
||||
namespace logbook
|
||||
{
|
||||
/*
|
||||
* Preamble (24)
|
||||
* CHAR[10] | CHAR[4] | CHAR[4] | CHAR[6]
|
||||
* ---------+---------------+----------+-------------
|
||||
* DATE | FLIGHT NUMBER | AIRCRAFT | REGISTRATION
|
||||
* Preamble (25)
|
||||
* CHAR[10] | CHAR[1] | CHAR[4] | CHAR[4] | CHAR[6]
|
||||
* ---------+-------------+---------------+----------+-------------
|
||||
* DATE | FLIGHT TYPE | FLIGHT NUMBER | AIRCRAFT | REGISTRATION
|
||||
|
||||
* Departure Airport Name (1...257)
|
||||
* UINT8 | CHAR[]
|
||||
@@ -89,6 +89,7 @@ namespace file
|
||||
{
|
||||
private:
|
||||
std::string date;
|
||||
std::string flightType;
|
||||
std::string flightNumber;
|
||||
std::string aircraftType;
|
||||
std::string aircraftRegistration;
|
||||
@@ -120,6 +121,7 @@ namespace file
|
||||
|
||||
public:
|
||||
inline LogbookEntry(std::string date,
|
||||
std::string flightType,
|
||||
std::string flightNumber,
|
||||
std::string aircraftType,
|
||||
std::string aircraftRegistration,
|
||||
@@ -148,7 +150,7 @@ namespace file
|
||||
std::string recordingFilename,
|
||||
float points,
|
||||
std::uint8_t flags)
|
||||
: date(date), flightNumber(flightNumber),
|
||||
: date(date), flightType(flightType), flightNumber(flightNumber),
|
||||
aircraftType(aircraftType),
|
||||
aircraftRegistration(aircraftRegistration),
|
||||
departureAirport(departureAirport), departureGate(departureGate),
|
||||
@@ -170,6 +172,7 @@ namespace file
|
||||
inline void toFile(std::ofstream &out) const
|
||||
{
|
||||
writeString(out, this->date, 10);
|
||||
writeString(out, this->flightType, 1);
|
||||
writeString(out, this->flightNumber, 4);
|
||||
writeString(out, this->aircraftType, 4);
|
||||
writeString(out, this->aircraftRegistration, 6);
|
||||
|
||||
Reference in new issue
Block a user