2020
2121#include " ComputedVariable.h"
2222#include " StoredVariable.h"
23- #include " VariableWrapper .h"
23+ #include " TypedVariable .h"
2424#include < QObject>
2525#include < QProcess>
2626#include < QString>
@@ -82,7 +82,7 @@ class VariableRegistry : public QObject
8282 Q_INVOKABLE Variable *variable (const QString &name) const ;
8383
8484 template <typename T>
85- std::optional<VariableWrapper <T>> variable (const VariableInfo<T> &info) const
85+ std::optional<TypedVariable <T>> variable (const VariableInfo<T> &info) const
8686 {
8787 return variable<T>(info.name );
8888 }
@@ -91,7 +91,7 @@ class VariableRegistry : public QObject
9191 * @return A statically-typed wrapper for the specified variable, nullptr if not found or type doesn't match.
9292 */
9393 template <typename T>
94- std::optional<VariableWrapper <T>> variable (const QString &name) const
94+ std::optional<TypedVariable <T>> variable (const QString &name) const
9595 {
9696 auto *result = variable (name);
9797 if (!result) {
@@ -102,14 +102,14 @@ class VariableRegistry : public QObject
102102 return {};
103103 }
104104
105- return VariableWrapper <T>(result);
105+ return TypedVariable <T>(result);
106106 }
107107
108108 bool contains (const QString &name) const ;
109109
110110 Variable *registerVariable (const QString &name, std::unique_ptr<Variable> variable, bool hidden = false );
111111 template <typename T>
112- VariableWrapper <T> registerStored (const QString &name, bool hidden = false )
112+ TypedVariable <T> registerStored (const QString &name, bool hidden = false )
113113 {
114114 return {registerVariable (name, std::make_unique<StoredVariable>(QMetaType::fromType<T>()), hidden)};
115115 }
0 commit comments