swift
Loading...
Searching...
No Matches
metarlist.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_METARLIST_H
7#define SWIFT_MISC_WEATHER_METARLIST_H
8
9#include <QMetaType>
10#include <QString>
11
13#include "misc/collection.h"
14#include "misc/sequence.h"
16#include "misc/weather/metar.h"
17
18SWIFT_DECLARE_SEQUENCE_MIXINS(swift::misc::weather, CMetar, CMetarList)
19
20namespace swift::misc::weather
21{
23 class SWIFT_MISC_EXPORT CMetarList : public CSequence<CMetar>, public swift::misc::mixin::MetaType<CMetarList>
24 {
25 public:
28
30 CMetarList() = default;
31
33 CMetarList(const CSequence<CMetar> &other);
34
37 };
38
39} // namespace swift::misc::weather
40
41Q_DECLARE_METATYPE(swift::misc::weather::CMetarList)
43
44#endif // SWIFT_MISC_WEATHER_METARLIST_H
Generic ordered container with value semantics.
Definition collection.h:113
CSequence()=default
Default constructor.
Value object encapsulating information of airport ICAO data.
CRTP class template from which a derived class can inherit common methods dealing with the metatype o...
Value object encapsulating information about METAR FIXME: runway visibilities FIXME: runway wind shea...
Definition metar.h:38
CMetar getMetarForAirport(const aviation::CAirportIcaoCode &icao) const
METAR for ICAO code.
Definition metarlist.cpp:14
CSequence()=default
Default constructor.
CMetarList()=default
Default constructor.
#define SWIFT_MISC_DECLARE_USING_MIXIN_METATYPE(DERIVED)
When a derived class and a base class both inherit from mixin::MetaType, the derived class uses this ...
#define SWIFT_DECLARE_SEQUENCE_MIXINS(Namespace, T, List)
Explicit template declaration of mixins for a CSequence subclass to be placed near the top of the hea...
Definition sequence.h:62
#define SWIFT_MISC_EXPORT
Export a class or function from the library.