##// END OF EJS Templates
Correction on package.cmake to include COPYING file instead of LICENCE File. Remove message from cmake
Correction on package.cmake to include COPYING file instead of LICENCE File. Remove message from cmake

File last commit:

r235:746eaca503e3
r242:070194309ffd
Show More
Variable.h
54 lines | 1.2 KiB | text/x-c | CLexer
#ifndef SCIQLOP_VARIABLE_H
#define SCIQLOP_VARIABLE_H
#include <Data/SqpDateTime.h>
#include <QLoggingCategory>
#include <QObject>
#include <Common/spimpl.h>
Q_DECLARE_LOGGING_CATEGORY(LOG_Variable)
class IDataSeries;
class QString;
/**
* @brief The Variable class represents a variable in SciQlop.
*/
class Variable : public QObject {
Q_OBJECT
public:
explicit Variable(const QString &name, const QString &unit, const QString &mission,
const SqpDateTime &dateTime);
QString name() const noexcept;
QString mission() const noexcept;
QString unit() const noexcept;
SqpDateTime dateTime() const noexcept;
/// @return the data of the variable, nullptr if there is no data
IDataSeries *dataSeries() const noexcept;
bool contains(SqpDateTime dateTime);
void setDataSeries(std::unique_ptr<IDataSeries> dataSeries) noexcept;
public slots:
void onAddDataSeries(std::shared_ptr<IDataSeries> dataSeries) noexcept;
signals:
void dataCacheUpdated();
private:
class VariablePrivate;
spimpl::unique_impl_ptr<VariablePrivate> impl;
};
// Required for using shared_ptr in signals/slots
Q_DECLARE_METATYPE(std::shared_ptr<Variable>)
#endif // SCIQLOP_VARIABLE_H