Files
pilotclient/src/blackmisc/weather/metardecoder.h
2016-12-13 19:01:58 +01:00

54 lines
1.3 KiB
C++

/* Copyright (C) 2015
* swift project Community / Contributors
*
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
* including this file, may be copied, modified, propagated, or distributed except according to the terms
* contained in the LICENSE file.
*/
//! \file
#ifndef BLACKMISC_WEATHER_METARDECODER_H
#define BLACKMISC_WEATHER_METARDECODER_H
#include "blackmisc/blackmiscexport.h"
#include "blackmisc/weather/metar.h"
#include <QObject>
#include <QString>
#include <memory>
#include <vector>
namespace BlackMisc
{
namespace Weather
{
class IMetarDecoderPart;
//! Metar Decoder
class BLACKMISC_EXPORT CMetarDecoder : public QObject
{
Q_OBJECT
public:
//! Default constructor
CMetarDecoder();
//! Default destructor
~CMetarDecoder();
//! Decode metar
CMetar decode(const QString &metarString) const;
private:
void allocateDecoders();
std::vector<std::unique_ptr<IMetarDecoderPart>> m_decoders;
};
} // namespace
} // namespace
#endif // guard