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