##// END OF EJS Templates
Some refactoring on PB11 wrappers...
Some refactoring on PB11 wrappers Most sciqlop core wrappers are moved into a dedicated python module. We needs to get rid off sqpapp! All current sciqlop modules should either be stateless or act as real singletons they must not need any app to be used. This will ease testing, wrapping and usage. Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>

File last commit:

r1118:7dc72cc510ff
r1341:f18e017310bc
Show More
AmdaServer.h
35 lines | 934 B | text/x-c | CLexer
Alexandre Leroux
Creates AMDAServer class...
r1111 #ifndef SCIQLOP_AMDASERVER_H
#define SCIQLOP_AMDASERVER_H
#include <QLoggingCategory>
#include <memory>
Q_DECLARE_LOGGING_CATEGORY(LOG_AmdaServer)
Alexandre Leroux
Determines AMDA server at compile time
r1113 // Directive used to determine the active AMDA server
#ifndef SCIQLOP_AMDA_SERVER
#define SCIQLOP_AMDA_SERVER "default"
#endif
Alexandre Leroux
Creates AMDAServer class...
r1111 /**
* @brief The AmdaServer class represents the server used to retrieve AMDA data (singleton).
*
* The server instance is initialized at compile time, as defined by the AMDA_SERVER value.
*/
class AmdaServer {
public:
/// @return the unique instance of the AMDA server
static AmdaServer &instance();
virtual ~AmdaServer() noexcept = default;
/// @return the name of the server
virtual QString name() const = 0;
Alexandre Leroux
Adds "hybrid" server mode...
r1118
/// @param properties used to generate url
Alexandre Leroux
Creates AMDAServer class...
r1111 /// @return the url of the server (used to retrieve data)
Alexandre Leroux
Adds "hybrid" server mode...
r1118 virtual QString url(const QVariantHash &properties = {}) const = 0;
Alexandre Leroux
Creates AMDAServer class...
r1111 };
#endif // SCIQLOP_AMDASERVER_H