30 lines
900 B
C++
30 lines
900 B
C++
#include "recording/recordingEntry.h"
|
|
|
|
|
|
namespace germanairlinesva
|
|
{
|
|
namespace file
|
|
{
|
|
namespace recording
|
|
{
|
|
RecordingEntry::RecordingEntry(std::uint32_t time,
|
|
std::uint16_t altitude,
|
|
std::uint16_t groundSpeed,
|
|
struct geodata::point coordinates)
|
|
{
|
|
this->time = time;
|
|
this->altitude = altitude;
|
|
this->groundSpeed = groundSpeed;
|
|
this->coordinates = coordinates;
|
|
};
|
|
|
|
void RecordingEntry::toFile(std::ofstream &out) const
|
|
{
|
|
write<decltype(this->time)>(out, this->time);
|
|
write<decltype(this->altitude)>(out, this->altitude);
|
|
write<decltype(this->groundSpeed)>(out, this->groundSpeed);
|
|
write<decltype(this->coordinates)>(out, this->coordinates);
|
|
}
|
|
} // namespace recording
|
|
} // namespace file
|
|
} // namespace germanairlinesva
|