swift
Loading...
Searching...
No Matches
interpolationresult.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (C) swift Project Community / Contributors
2// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3
5
6#ifndef SWIFT_MISC_SIMULATION_INTERPOLATION_INTERPOLATIONRESULT_H
7#define SWIFT_MISC_SIMULATION_INTERPOLATION_INTERPOLATIONRESULT_H
8
14
15namespace swift::misc::simulation
16{
19 {
20 public:
23
25 const aviation::CAircraftSituation &getInterpolatedSituation() const { return m_interpolatedSituation; }
26
28 const aviation::CAircraftParts &getInterpolatedParts() const { return m_interpolatedParts; }
29
31 const CInterpolationStatus &getInterpolationStatus() const { return m_interpolationStatus; }
32
34 const CPartsStatus &getPartsStatus() const { return m_partsStatus; }
35
38 {
39 m_interpolatedSituation = situation;
40 }
41
43 void setInterpolatedParts(const aviation::CAircraftParts &parts) { m_interpolatedParts = parts; }
44
46 void setValues(const aviation::CAircraftSituation &situation, const aviation::CAircraftParts &parts);
47
49 void setInterpolationStatus(const CInterpolationStatus &status) { m_interpolationStatus = status; }
50
52 void setPartsStatus(const CPartsStatus &status) { m_partsStatus = status; }
53
55 void setStatus(const CInterpolationStatus &interpolation, const CPartsStatus &parts);
56
59 operator const aviation::CAircraftSituation &() const { return m_interpolatedSituation; }
60 operator const aviation::CAircraftParts &() const { return m_interpolatedParts; }
62
63 private:
64 aviation::CAircraftSituation m_interpolatedSituation =
66 aviation::CAircraftParts m_interpolatedParts =
68 CInterpolationStatus m_interpolationStatus;
69 CPartsStatus m_partsStatus;
70 };
71
72} // namespace swift::misc::simulation
73
74#endif // SWIFT_MISC_SIMULATION_INTERPOLATION_INTERPOLATIONRESULT_H
Value object encapsulating information of aircraft's parts.
static const CAircraftParts & null()
NULL parts object.
Value object encapsulating information of an aircraft's situation.
static const CAircraftSituation & null()
Null situation.
const CInterpolationStatus & getInterpolationStatus() const
Get status.
void setInterpolatedSituation(const aviation::CAircraftSituation &situation)
Set situation.
const CPartsStatus & getPartsStatus() const
Get status.
void setPartsStatus(const CPartsStatus &status)
Set status.
void setInterpolatedParts(const aviation::CAircraftParts &parts)
Set parts (interpolated or guessed).
void setInterpolationStatus(const CInterpolationStatus &status)
Set status.
const aviation::CAircraftParts & getInterpolatedParts() const
Get parts (interpolated or guessed).
const aviation::CAircraftSituation & getInterpolatedSituation() const
Get situation.
#define SWIFT_MISC_EXPORT
Export a class or function from the library.