##// END OF EJS Templates
Basic serial variable creation and update...
Basic serial variable creation and update This is a really basic implementation, this should help to develop the full VariableController pipeline. Added debug header to allow a custom behavior between debug and production, using SCIQLOP_ERROR macro will blow on debug but will have a different behavior in production code. This will allow to highlight any unexpected behavior without flooding stdout. Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>

File last commit:

r2:c7f53bda4647
r2:c7f53bda4647
Show More
VariableController2.h
36 lines | 1.1 KiB | text/x-c | CLexer
/ include / Variable / VariableController2.h
First init from SciQLop Core module...
r0 #include <memory>
#include <vector>
#include <QHash>
Basic serial variable creation and update...
r2 #include <QObject>
#include <QMutexLocker>
#include <QUuid>
#include <QItemSelectionModel>
#include <Common/spimpl.h>
First init from SciQLop Core module...
r0 #include <Variable/Variable.h>
#include <Variable/VariableSynchronizationGroup.h>
#include <Variable/VariableModel.h>
#include <Data/IDataProvider.h>
#include "Data/DateTimeRange.h"
Basic serial variable creation and update...
r2 class VariableController2: public QObject
First init from SciQLop Core module...
r0 {
Basic serial variable creation and update...
r2 class VariableController2Private;
Q_OBJECT
First init from SciQLop Core module...
r0 spimpl::unique_impl_ptr<VariableController2Private> impl;
public:
explicit VariableController2();
std::shared_ptr<Variable> createVariable(const QString &name, const QVariantHash &metadata,
std::shared_ptr<IDataProvider> provider, const DateTimeRange &range);
Basic serial variable creation and update...
r2
void deleteVariable(std::shared_ptr<Variable> variable);
void changeRange(std::shared_ptr<Variable> variable, DateTimeRange r);
void asyncChangeRange(std::shared_ptr<Variable> variable, DateTimeRange r);
const std::set<std::shared_ptr<Variable> > &variables();
signals:
void variableAdded(std::shared_ptr<Variable>);
void variableDeleted(std::shared_ptr<Variable>);
First init from SciQLop Core module...
r0
};