swift
Loading...
Searching...
No Matches
src
misc
weather
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
:
29
CMetarDecoder
();
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
swift::misc::weather::CMetarDecoder::decode
CMetar decode(const QString &metarString) const
Decode metar.
swift::misc::weather::CMetarDecoder::CMetarDecoder
CMetarDecoder()
Default constructor.
swift::misc::weather::CMetarDecoder::~CMetarDecoder
~CMetarDecoder()
Default destructor.
swift::misc::weather::CMetar
Value object encapsulating information about METAR FIXME: runway visibilities FIXME: runway wind shea...
Definition
metar.h:38
metar.h
QObject::QObject
QObject(QObject *parent)
QObject::Q_OBJECT
Q_OBJECTQ_OBJECT
QString
swiftmiscexport.h
SWIFT_MISC_EXPORT
#define SWIFT_MISC_EXPORT
Export a class or function from the library.
Definition
swiftmiscexport.h:19
Generated on
for swift by
1.15.0