Navigator2Go  2.0
Manage your local Ocean Navigator installation.
datadownloaddesc.h
1 #ifndef DOWNLOADDATA_H
2 #define DOWNLOADDATA_H
3 
4 #include "nodiscard.h"
5 
6 #include <QDate>
7 #include <QStringList>
8 
9 /***********************************************************************************/
11 struct NODISCARD DataDownloadDesc {
12 
13  NODISCARD auto operator==(const DataDownloadDesc& rhs) const noexcept {
14  return ID == rhs.ID;
15  }
16 
18  NODISCARD QString GetAPIQuery(const QString& remoteURL) const;
19 
20  QString ID, Name, Quantum;
21  QDate StartDate, EndDate;
22  QStringList SelectedVariables;
23 };
24 
25 /***********************************************************************************/
27 NODISCARD inline auto qHash(const DataDownloadDesc& dlData) noexcept {
28  return qHash(dlData.ID);
29 }
30 
31 #endif // DOWNLOADDATA_H
Holds info needed to download a dataset from the remote server.
Definition: datadownloaddesc.h:11