##// END OF EJS Templates
Implementation of the addDateTime method of the cache
Implementation of the addDateTime method of the cache

File last commit:

r228:8e4faeed90b4
r230:b886fd9a8729
Show More
Variable.h
45 lines | 1.0 KiB | text/x-c | CLexer
Alexandre Leroux
Creates the variable model...
r112 #ifndef SCIQLOP_VARIABLE_H
#define SCIQLOP_VARIABLE_H
Variable slot is called when x range of its graph changed
r226 #include <Data/SqpDateTime.h>
Alexandre Leroux
Changes Variable from struct to class
r163
Variable slot is called when x range of its graph changed
r226 #include <QLoggingCategory>
Alexandre Leroux
Makes the connection between Variable controller and Visualization controller...
r170 #include <QObject>
Variable slot is called when x range of its graph changed
r226 #include <Common/spimpl.h>
Q_DECLARE_LOGGING_CATEGORY(LOG_Variable)
Alexandre Leroux
Adds data series to a variable
r164 class IDataSeries;
Alexandre Leroux
Changes Variable from struct to class
r163 class QString;
Alexandre Leroux
Creates the variable model...
r112
/**
Alexandre Leroux
Changes Variable from struct to class
r163 * @brief The Variable class represents a variable in SciQlop.
Alexandre Leroux
Creates the variable model...
r112 */
Alexandre Leroux
Changes Variable from struct to class
r163 class Variable {
public:
A variable is now created with its dateTime too....
r228 explicit Variable(const QString &name, const QString &unit, const QString &mission,
const SqpDateTime &dateTime);
Alexandre Leroux
Changes Variable from struct to class
r163
QString name() const noexcept;
QString mission() const noexcept;
QString unit() const noexcept;
Alexandre Leroux
Creates the variable model...
r112
Alexandre Leroux
Adds data series to a variable
r164 void addDataSeries(std::unique_ptr<IDataSeries> dataSeries) noexcept;
Alexandre Leroux
Handles creations for scalar series
r182 /// @return the data of the variable, nullptr if there is no data
IDataSeries *dataSeries() const noexcept;
Variable slot is called when x range of its graph changed
r226 public slots:
void onXRangeChanged(SqpDateTime dateTime);
Alexandre Leroux
Changes Variable from struct to class
r163 private:
class VariablePrivate;
spimpl::unique_impl_ptr<VariablePrivate> impl;
Alexandre Leroux
Creates the variable model...
r112 };
Alexandre Leroux
Makes the connection between Variable controller and Visualization controller...
r170 // Required for using shared_ptr in signals/slots
Q_DECLARE_METATYPE(std::shared_ptr<Variable>)
Alexandre Leroux
Creates the variable model...
r112 #endif // SCIQLOP_VARIABLE_H