swift
src
core
fsd
planeinformation.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (C) 2019 swift Project Community / Contributors
2
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3
5
6
#ifndef SWIFT_CORE_FSD_PLANEINFORMATION_H
7
#define SWIFT_CORE_FSD_PLANEINFORMATION_H
8
9
#include "
core/fsd/messagebase.h
"
10
11
namespace
swift::core::fsd
12
{
15
class
SWIFT_CORE_EXPORT
PlaneInformation
:
public
MessageBase
16
{
17
public
:
19
PlaneInformation
(
const
QString &sender,
const
QString &receiver,
const
QString &aircraft,
20
const
QString &airline,
const
QString &livery);
21
23
QStringList toTokens()
const
;
24
26
static
PlaneInformation
fromTokens(
const
QStringList &tokens);
27
29
static
QString
pdu
() {
return
"#SB"
; }
30
33
QString
m_aircraft
;
34
QString
m_airline
;
35
QString
m_livery
;
37
38
private
:
39
PlaneInformation
();
40
};
41
43
inline
bool
operator==(
const
PlaneInformation
&lhs,
const
PlaneInformation
&rhs)
44
{
45
return
lhs.
sender
() == rhs.
sender
() && lhs.
receiver
() == rhs.
receiver
() && lhs.
m_aircraft
== rhs.
m_aircraft
&&
46
lhs.
m_airline
== rhs.
m_airline
&& lhs.
m_livery
== rhs.
m_livery
;
47
}
48
50
inline
bool
operator!=
(
const
PlaneInformation
&lhs,
const
PlaneInformation
&rhs) {
return
!(lhs == rhs); }
51
}
// namespace swift::core::fsd
52
53
#endif
// SWIFT_CORE_FSD_PLANEINFORMATION_H
swift::core::fsd::operator!=
bool operator!=(const AddAtc &lhs, const AddAtc &rhs)
Not equal operator.
Definition:
addatc.h:68
swift::core::fsd::MessageBase
FSD message base class.
Definition:
messagebase.h:58
swift::core::fsd::MessageBase::sender
QString sender() const
get message sender
Definition:
messagebase.h:73
swift::core::fsd::MessageBase::receiver
QString receiver() const
Get message receiver.
Definition:
messagebase.h:79
swift::core::fsd::PlaneInformation
This packet is sent in reply to a PIR request to inform the client which multiplayer model to use....
Definition:
planeinformation.h:16
swift::core::fsd::PlaneInformation::m_livery
QString m_livery
Properties.
Definition:
planeinformation.h:35
swift::core::fsd::PlaneInformation::m_airline
QString m_airline
Properties.
Definition:
planeinformation.h:34
swift::core::fsd::PlaneInformation::pdu
static QString pdu()
PDU identifier.
Definition:
planeinformation.h:29
swift::core::fsd::PlaneInformation::m_aircraft
QString m_aircraft
Properties.
Definition:
planeinformation.h:33
messagebase.h
SWIFT_CORE_EXPORT
#define SWIFT_CORE_EXPORT
Export a class or function from the library.
Definition:
swiftcoreexport.h:20
Generated on Mon Mar 24 2025 16:42:19 for swift by
1.9.1