@@ -0,0 +1,28 | |||
|
1 | #ifndef SCIQLOP_AMDASERVER_H | |
|
2 | #define SCIQLOP_AMDASERVER_H | |
|
3 | ||
|
4 | #include <QLoggingCategory> | |
|
5 | ||
|
6 | #include <memory> | |
|
7 | ||
|
8 | Q_DECLARE_LOGGING_CATEGORY(LOG_AmdaServer) | |
|
9 | ||
|
10 | /** | |
|
11 | * @brief The AmdaServer class represents the server used to retrieve AMDA data (singleton). | |
|
12 | * | |
|
13 | * The server instance is initialized at compile time, as defined by the AMDA_SERVER value. | |
|
14 | */ | |
|
15 | class AmdaServer { | |
|
16 | public: | |
|
17 | /// @return the unique instance of the AMDA server | |
|
18 | static AmdaServer &instance(); | |
|
19 | ||
|
20 | virtual ~AmdaServer() noexcept = default; | |
|
21 | ||
|
22 | /// @return the name of the server | |
|
23 | virtual QString name() const = 0; | |
|
24 | /// @return the url of the server (used to retrieve data) | |
|
25 | virtual QString url() const = 0; | |
|
26 | }; | |
|
27 | ||
|
28 | #endif // SCIQLOP_AMDASERVER_H |
General Comments 0
You need to be logged in to leave comments.
Login now