##// END OF EJS Templates
Add the time controller.
Add the time controller.

File last commit:

r169:cc2257464c26
r176:c3e91a6962e0
Show More
Variable.h
35 lines | 842 B | text/x-c | CLexer
Alexandre Leroux
Creates the variable model...
r107 #ifndef SCIQLOP_VARIABLE_H
#define SCIQLOP_VARIABLE_H
Alexandre Leroux
Changes Variable from struct to class
r151 #include <Common/spimpl.h>
Alexandre Leroux
Makes the connection between Variable controller and Visualization controller...
r158 #include <QObject>
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 */
Alexandre Leroux
Changes Variable from struct to class
r151 class Variable {
public:
explicit Variable(const QString &name, const QString &unit, const QString &mission);
QString name() const noexcept;
QString mission() const noexcept;
QString unit() const noexcept;
Alexandre Leroux
Creates the variable model...
r107
Alexandre Leroux
Adds data series to a variable
r152 void addDataSeries(std::unique_ptr<IDataSeries> dataSeries) noexcept;
Alexandre Leroux
Handles creations for scalar series
r169 /// @return the data of the variable, nullptr if there is no data
IDataSeries *dataSeries() const noexcept;
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
Q_DECLARE_METATYPE(std::shared_ptr<Variable>)
Alexandre Leroux
Creates the variable model...
r107 #endif // SCIQLOP_VARIABLE_H