##// END OF EJS Templates
Use std::shared_ptr in CosinusProvider
Use std::shared_ptr in CosinusProvider

File last commit:

r287:9a5cb57f1573
r287:9a5cb57f1573
Show More
Variable.h
54 lines | 1.3 KiB | text/x-c | CLexer
Alexandre Leroux
Creates the variable model...
r107 #ifndef SCIQLOP_VARIABLE_H
#define SCIQLOP_VARIABLE_H
Variable slot is called when x range of its graph changed
r210 #include <Data/SqpDateTime.h>
#include <QLoggingCategory>
Alexandre Leroux
Makes the connection between Variable controller and Visualization controller...
r158 #include <QObject>
Alexandre Leroux
Centralization of qregistermetatype management
r285 #include <Common/MetaTypes.h>
Variable slot is called when x range of its graph changed
r210 #include <Common/spimpl.h>
Q_DECLARE_LOGGING_CATEGORY(LOG_Variable)
Alexandre Leroux
Adds data series to a variable
r152 class IDataSeries;
Alexandre Leroux
Changes Variable from struct to class
r151 class QString;
Alexandre Leroux
Creates the variable model...
r107
/**
Alexandre Leroux
Changes Variable from struct to class
r151 * @brief The Variable class represents a variable in SciQlop.
Alexandre Leroux
Creates the variable model...
r107 */
The mock plugin can now create data with view operation
r219 class Variable : public QObject {
Q_OBJECT
Alexandre Leroux
Changes Variable from struct to class
r151 public:
A variable is now created with its dateTime too....
r212 explicit Variable(const QString &name, const QString &unit, const QString &mission,
const SqpDateTime &dateTime);
Alexandre Leroux
Changes Variable from struct to class
r151
QString name() const noexcept;
QString mission() const noexcept;
QString unit() const noexcept;
The mock plugin can now create data with view operation
r219 SqpDateTime dateTime() const noexcept;
Implementation of the new Dela T computation strategy
r241 void setDateTime(const SqpDateTime &dateTime) noexcept;
Alexandre Leroux
Adds data series to a variable
r152
Alexandre Leroux
Handles creations for scalar series
r169 /// @return the data of the variable, nullptr if there is no data
IDataSeries *dataSeries() const noexcept;
Correction for pull request
r227 bool contains(const SqpDateTime &dateTime);
Add intersect méthode on variable and sqpDateTime...
r240 bool intersect(const SqpDateTime &dateTime);
The mock plugin can now create data with view operation
r219
Variable slot is called when x range of its graph changed
r210 public slots:
Alexandre Leroux
Use std::shared_ptr in CosinusProvider
r287 void setDataSeries(std::shared_ptr<IDataSeries> dataSeries) noexcept;
The mock plugin can now create data with view operation
r219
signals:
Fix the cosinus bug....
r276 void updated();
The mock plugin can now create data with view operation
r219
Alexandre Leroux
Changes Variable from struct to class
r151 private:
class VariablePrivate;
spimpl::unique_impl_ptr<VariablePrivate> impl;
Alexandre Leroux
Creates the variable model...
r107 };
Alexandre Leroux
Makes the connection between Variable controller and Visualization controller...
r158 // Required for using shared_ptr in signals/slots
Alexandre Leroux
Centralization of qregistermetatype management
r285 SCIQLOP_REGISTER_META_TYPE(VARIABLE_PTR_REGISTRY, std::shared_ptr<Variable>)
Alexandre Leroux
Makes the connection between Variable controller and Visualization controller...
r158
Alexandre Leroux
Creates the variable model...
r107 #endif // SCIQLOP_VARIABLE_H