@@ -0,0 +1,12 | |||
|
1 | #ifndef SCIQLOP_COREGLOBAL_H | |
|
2 | #define SCIQLOP_COREGLOBAL_H | |
|
3 | ||
|
4 | #include <QtCore/QtGlobal> | |
|
5 | ||
|
6 | #ifdef CORE_LIB | |
|
7 | #define SCIQLOP_CORE_EXPORT Q_DECL_EXPORT | |
|
8 | #else | |
|
9 | #define SCIQLOP_CORE_EXPORT Q_DECL_IMPORT | |
|
10 | #endif | |
|
11 | ||
|
12 | #endif // SCIQLOP_COREGLOBAL_H |
@@ -29,6 +29,9 SCIQLOP_FIND_QT(Core Network) | |||
|
29 | 29 | # |
|
30 | 30 | # Compile the library library |
|
31 | 31 | # |
|
32 | ||
|
33 | ADD_DEFINITIONS(-DCORE_LIB) | |
|
34 | ||
|
32 | 35 | FILE (GLOB_RECURSE MODULE_SOURCES |
|
33 | 36 | ${INCLUDES_DIR}/*.h |
|
34 | 37 | ${SOURCES_DIR}/*.c |
@@ -1,6 +1,8 | |||
|
1 | 1 | #ifndef SCIQLOP_IDATAPROVIDER_H |
|
2 | 2 | #define SCIQLOP_IDATAPROVIDER_H |
|
3 | 3 | |
|
4 | #include "CoreGlobal.h" | |
|
5 | ||
|
4 | 6 | #include <memory> |
|
5 | 7 | |
|
6 | 8 | #include <QObject> |
@@ -25,7 +27,7 class QNetworkRequest; | |||
|
25 | 27 | * |
|
26 | 28 | * @sa IDataSeries |
|
27 | 29 | */ |
|
28 | class IDataProvider : public QObject { | |
|
30 | class SCIQLOP_CORE_EXPORT IDataProvider : public QObject { | |
|
29 | 31 | |
|
30 | 32 | Q_OBJECT |
|
31 | 33 | public: |
@@ -1,12 +1,14 | |||
|
1 | 1 | #ifndef SCIQLOP_SCALARSERIES_H |
|
2 | 2 | #define SCIQLOP_SCALARSERIES_H |
|
3 | 3 | |
|
4 | #include "CoreGlobal.h" | |
|
5 | ||
|
4 | 6 | #include <Data/DataSeries.h> |
|
5 | 7 | |
|
6 | 8 | /** |
|
7 | 9 | * @brief The ScalarSeries class is the implementation for a data series representing a scalar. |
|
8 | 10 | */ |
|
9 | class ScalarSeries : public DataSeries<1> { | |
|
11 | class SCIQLOP_CORE_EXPORT ScalarSeries : public DataSeries<1> { | |
|
10 | 12 | public: |
|
11 | 13 | /** |
|
12 | 14 | * Ctor with two vectors. The vectors must have the same size, otherwise a ScalarSeries with no |
@@ -1,6 +1,8 | |||
|
1 | 1 | #ifndef SCIQLOP_DATASOURCECONTROLLER_H |
|
2 | 2 | #define SCIQLOP_DATASOURCECONTROLLER_H |
|
3 | 3 | |
|
4 | #include "CoreGlobal.h" | |
|
5 | ||
|
4 | 6 | #include <QLoggingCategory> |
|
5 | 7 | #include <QObject> |
|
6 | 8 | #include <QUuid> |
@@ -19,7 +21,7 class IDataProvider; | |||
|
19 | 21 | * source) then others specifics method will be able to access it. You can load a data source driver |
|
20 | 22 | * plugin then create a data source. |
|
21 | 23 | */ |
|
22 | class DataSourceController : public QObject { | |
|
24 | class SCIQLOP_CORE_EXPORT DataSourceController : public QObject { | |
|
23 | 25 | Q_OBJECT |
|
24 | 26 | public: |
|
25 | 27 | explicit DataSourceController(QObject *parent = 0); |
@@ -1,6 +1,8 | |||
|
1 | 1 | #ifndef SCIQLOP_DATASOURCEITEM_H |
|
2 | 2 | #define SCIQLOP_DATASOURCEITEM_H |
|
3 | 3 | |
|
4 | #include "CoreGlobal.h" | |
|
5 | ||
|
4 | 6 | #include <Common/spimpl.h> |
|
5 | 7 | |
|
6 | 8 | #include <QVariant> |
@@ -19,7 +21,7 enum class DataSourceItemType { NODE, PRODUCT, COMPONENT }; | |||
|
19 | 21 | * containing other DataSourceItem objects (children). |
|
20 | 22 | * For each DataSourceItem can be associated a set of data representing it. |
|
21 | 23 | */ |
|
22 | class DataSourceItem { | |
|
24 | class SCIQLOP_CORE_EXPORT DataSourceItem { | |
|
23 | 25 | public: |
|
24 | 26 | /// Key associated with the name of the item |
|
25 | 27 | static const QString NAME_DATA_KEY; |
@@ -1,6 +1,8 | |||
|
1 | 1 | #ifndef SCIQLOP_DATASOURCEITEMACTION_H |
|
2 | 2 | #define SCIQLOP_DATASOURCEITEMACTION_H |
|
3 | 3 | |
|
4 | #include "CoreGlobal.h" | |
|
5 | ||
|
4 | 6 | #include <Common/spimpl.h> |
|
5 | 7 | |
|
6 | 8 | #include <QLoggingCategory> |
@@ -17,7 +19,7 class DataSourceItem; | |||
|
17 | 19 | * |
|
18 | 20 | * An action is a function that will be executed when the slot execute() is called. |
|
19 | 21 | */ |
|
20 | class DataSourceItemAction : public QObject { | |
|
22 | class SCIQLOP_CORE_EXPORT DataSourceItemAction : public QObject { | |
|
21 | 23 | |
|
22 | 24 | Q_OBJECT |
|
23 | 25 |
@@ -1,6 +1,8 | |||
|
1 | 1 | #ifndef SCIQLOP_NETWORKCONTROLLER_H |
|
2 | 2 | #define SCIQLOP_NETWORKCONTROLLER_H |
|
3 | 3 | |
|
4 | #include "CoreGlobal.h" | |
|
5 | ||
|
4 | 6 | #include <QLoggingCategory> |
|
5 | 7 | #include <QObject> |
|
6 | 8 | #include <QUuid> |
@@ -16,7 +18,7 class QNetworkRequest; | |||
|
16 | 18 | /** |
|
17 | 19 | * @brief The NetworkController class aims to handle all network connection of SciQlop. |
|
18 | 20 | */ |
|
19 | class NetworkController : public QObject { | |
|
21 | class SCIQLOP_CORE_EXPORT NetworkController : public QObject { | |
|
20 | 22 | Q_OBJECT |
|
21 | 23 | public: |
|
22 | 24 | explicit NetworkController(QObject *parent = 0); |
@@ -1,6 +1,8 | |||
|
1 | 1 | #ifndef SCIQLOP_PLUGINMANAGER_H |
|
2 | 2 | #define SCIQLOP_PLUGINMANAGER_H |
|
3 | 3 | |
|
4 | #include "CoreGlobal.h" | |
|
5 | ||
|
4 | 6 | #include <Common/spimpl.h> |
|
5 | 7 | |
|
6 | 8 | #include <QLoggingCategory> |
@@ -12,7 +14,7 Q_DECLARE_LOGGING_CATEGORY(LOG_PluginManager) | |||
|
12 | 14 | /** |
|
13 | 15 | * @brief The PluginManager class aims to handle the plugins loaded dynamically into SciQLop. |
|
14 | 16 | */ |
|
15 | class PluginManager { | |
|
17 | class SCIQLOP_CORE_EXPORT PluginManager { | |
|
16 | 18 | public: |
|
17 | 19 | explicit PluginManager(); |
|
18 | 20 |
@@ -1,6 +1,8 | |||
|
1 | 1 | #ifndef SCIQLOP_TIMECONTROLLER_H |
|
2 | 2 | #define SCIQLOP_TIMECONTROLLER_H |
|
3 | 3 | |
|
4 | #include "CoreGlobal.h" | |
|
5 | ||
|
4 | 6 | #include <Data/SqpDateTime.h> |
|
5 | 7 | |
|
6 | 8 | #include <QLoggingCategory> |
@@ -14,7 +16,7 Q_DECLARE_LOGGING_CATEGORY(LOG_TimeController) | |||
|
14 | 16 | /** |
|
15 | 17 | * @brief The TimeController class aims to handle the Time parameters notification in SciQlop. |
|
16 | 18 | */ |
|
17 | class TimeController : public QObject { | |
|
19 | class SCIQLOP_CORE_EXPORT TimeController : public QObject { | |
|
18 | 20 | Q_OBJECT |
|
19 | 21 | public: |
|
20 | 22 | explicit TimeController(QObject *parent = 0); |
@@ -1,6 +1,8 | |||
|
1 | 1 | #ifndef SCIQLOP_VARIABLE_H |
|
2 | 2 | #define SCIQLOP_VARIABLE_H |
|
3 | 3 | |
|
4 | #include "CoreGlobal.h" | |
|
5 | ||
|
4 | 6 | #include <Data/SqpDateTime.h> |
|
5 | 7 | |
|
6 | 8 | #include <QLoggingCategory> |
@@ -17,7 +19,7 class QString; | |||
|
17 | 19 | /** |
|
18 | 20 | * @brief The Variable class represents a variable in SciQlop. |
|
19 | 21 | */ |
|
20 | class Variable : public QObject { | |
|
22 | class SCIQLOP_CORE_EXPORT Variable : public QObject { | |
|
21 | 23 | |
|
22 | 24 | Q_OBJECT |
|
23 | 25 |
@@ -1,6 +1,8 | |||
|
1 | 1 | #ifndef SCIQLOP_VARIABLECACHECONTROLLER_H |
|
2 | 2 | #define SCIQLOP_VARIABLECACHECONTROLLER_H |
|
3 | 3 | |
|
4 | #include "CoreGlobal.h" | |
|
5 | ||
|
4 | 6 | #include <QLoggingCategory> |
|
5 | 7 | #include <QObject> |
|
6 | 8 | |
@@ -15,7 +17,7 Q_DECLARE_LOGGING_CATEGORY(LOG_VariableCacheController) | |||
|
15 | 17 | class Variable; |
|
16 | 18 | |
|
17 | 19 | /// This class aims to store in the cache all of the dateTime already requested to the variable. |
|
18 | class VariableCacheController : public QObject { | |
|
20 | class SCIQLOP_CORE_EXPORT VariableCacheController : public QObject { | |
|
19 | 21 | Q_OBJECT |
|
20 | 22 | public: |
|
21 | 23 | explicit VariableCacheController(QObject *parent = 0); |
@@ -1,6 +1,8 | |||
|
1 | 1 | #ifndef SCIQLOP_VARIABLECONTROLLER_H |
|
2 | 2 | #define SCIQLOP_VARIABLECONTROLLER_H |
|
3 | 3 | |
|
4 | #include "CoreGlobal.h" | |
|
5 | ||
|
4 | 6 | #include <Data/SqpDateTime.h> |
|
5 | 7 | |
|
6 | 8 | #include <QLoggingCategory> |
@@ -19,7 +21,7 Q_DECLARE_LOGGING_CATEGORY(LOG_VariableController) | |||
|
19 | 21 | /** |
|
20 | 22 | * @brief The VariableController class aims to handle the variables in SciQlop. |
|
21 | 23 | */ |
|
22 | class VariableController : public QObject { | |
|
24 | class SCIQLOP_CORE_EXPORT VariableController : public QObject { | |
|
23 | 25 | Q_OBJECT |
|
24 | 26 | public: |
|
25 | 27 | explicit VariableController(QObject *parent = 0); |
@@ -1,6 +1,7 | |||
|
1 | 1 | #ifndef SCIQLOP_VARIABLEMODEL_H |
|
2 | 2 | #define SCIQLOP_VARIABLEMODEL_H |
|
3 | 3 | |
|
4 | #include "CoreGlobal.h" | |
|
4 | 5 | |
|
5 | 6 | #include <Data/SqpDateTime.h> |
|
6 | 7 | |
@@ -21,7 +22,7 class Variable; | |||
|
21 | 22 | /** |
|
22 | 23 | * @brief The VariableModel class aims to hold the variables that have been created in SciQlop |
|
23 | 24 | */ |
|
24 | class VariableModel : public QAbstractTableModel { | |
|
25 | class SCIQLOP_CORE_EXPORT VariableModel : public QAbstractTableModel { | |
|
25 | 26 | Q_OBJECT |
|
26 | 27 | public: |
|
27 | 28 | explicit VariableModel(QObject *parent = nullptr); |
@@ -1,6 +1,8 | |||
|
1 | 1 | #ifndef SCIQLOP_VISUALIZATIONCONTROLLER_H |
|
2 | 2 | #define SCIQLOP_VISUALIZATIONCONTROLLER_H |
|
3 | 3 | |
|
4 | #include "CoreGlobal.h" | |
|
5 | ||
|
4 | 6 | #include <Data/SqpDateTime.h> |
|
5 | 7 | |
|
6 | 8 | #include <QLoggingCategory> |
@@ -21,7 +23,7 class Variable; | |||
|
21 | 23 | * plugin source) then others specifics method will be able to access it. You can load a data source |
|
22 | 24 | * driver plugin then create a data source. |
|
23 | 25 | */ |
|
24 | class VisualizationController : public QObject { | |
|
26 | class SCIQLOP_CORE_EXPORT VisualizationController : public QObject { | |
|
25 | 27 | Q_OBJECT |
|
26 | 28 | public: |
|
27 | 29 | explicit VisualizationController(QObject *parent = 0); |
General Comments 0
You need to be logged in to leave comments.
Login now