swift
planeinforequest.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_PLANEINFOREQUEST_H
7 #define SWIFT_CORE_FSD_PLANEINFOREQUEST_H
8 
9 #include "core/fsd/messagebase.h"
10 
11 namespace swift::core::fsd
12 {
16  {
17  public:
19  PlaneInfoRequest(const QString &sender, const QString &receiver);
20 
22  QStringList toTokens() const;
23 
25  static PlaneInfoRequest fromTokens(const QStringList &tokens);
26 
28  static QString pdu() { return QStringLiteral("#SB"); }
29 
30  private:
32  };
33 
35  inline bool operator==(const PlaneInfoRequest &lhs, const PlaneInfoRequest &rhs)
36  {
37  return lhs.sender() == rhs.sender() && lhs.receiver() == rhs.receiver();
38  }
39 
41  inline bool operator!=(const PlaneInfoRequest &lhs, const PlaneInfoRequest &rhs) { return !(lhs == rhs); }
42 } // namespace swift::core::fsd
43 
44 #endif // SWIFT_CORE_FSD_PLANEINFOREQUEST_H
bool operator!=(const AddAtc &lhs, const AddAtc &rhs)
Not equal operator.
Definition: addatc.h:68
FSD message base class.
Definition: messagebase.h:58
QString sender() const
get message sender
Definition: messagebase.h:73
QString receiver() const
Get message receiver.
Definition: messagebase.h:79
Request to send plane information. Shall be answered by a PlaneInformation message.
static QString pdu()
PDU identifier.
#define SWIFT_CORE_EXPORT
Export a class or function from the library.