swift
metardecoder.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2015 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_WEATHER_METARDECODER_H
7 #define SWIFT_MISC_WEATHER_METARDECODER_H
8 
9 #include <memory>
10 #include <vector>
11 
12 #include <QObject>
13 #include <QString>
14 
15 #include "misc/swiftmiscexport.h"
16 #include "misc/weather/metar.h"
17 
18 namespace swift::misc::weather
19 {
20  class IMetarDecoderPart;
21 
23  class SWIFT_MISC_EXPORT CMetarDecoder : public QObject
24  {
25  Q_OBJECT
26 
27  public:
30 
32  ~CMetarDecoder() override;
33 
35  CMetar decode(const QString &metarString) const;
36 
37  private:
38  void allocateDecoders();
39  std::vector<std::unique_ptr<IMetarDecoderPart>> m_decoders;
40  };
41 
42 } // namespace swift::misc::weather
43 
44 #endif // SWIFT_MISC_WEATHER_METARDECODER_H
CMetar decode(const QString &metarString) const
Decode metar.
CMetarDecoder()
Default constructor.
~CMetarDecoder()
Default destructor.
Value object encapsulating information about METAR FIXME: runway visibilities FIXME: runway wind shea...
Definition: metar.h:38
#define SWIFT_MISC_EXPORT
Export a class or function from the library.