diff --git a/src/blackmisc/weather/weathergrid.cpp b/src/blackmisc/weather/weathergrid.cpp index e56b8f55a..a91d5e3b5 100644 --- a/src/blackmisc/weather/weathergrid.cpp +++ b/src/blackmisc/weather/weathergrid.cpp @@ -59,6 +59,12 @@ namespace BlackMisc return closest; } + QString CWeatherGrid::getDescription(const QString sep) const + { + Q_UNUSED(sep) + return QStringLiteral("Weather grid with %1 entries").arg(this->size()); + } + const QVector &CWeatherGrid::getAllScenarios() { static const QVector scenarios = diff --git a/src/blackmisc/weather/weathergrid.h b/src/blackmisc/weather/weathergrid.h index a0563a65d..f9a252404 100644 --- a/src/blackmisc/weather/weathergrid.h +++ b/src/blackmisc/weather/weathergrid.h @@ -49,6 +49,9 @@ namespace BlackMisc //! \copydoc Geo::IGeoObjectList::findClosest CWeatherGrid findClosest(int number, const BlackMisc::Geo::ICoordinateGeodetic &coordinate) const; + //! Allow to describe myself + QString getDescription(const QString sep = "\n") const; + //! Get all available weather scenarios static const QVector &getAllScenarios();