mirror of
https://github.com/overte-org/overte.git
synced 2025-06-21 22:00:10 +02:00
MOVe the feedINput functions at the right spot
This commit is contained in:
parent
7ed39f4052
commit
c66b592b3a
1 changed files with 3 additions and 3 deletions
|
@ -141,9 +141,6 @@ public:
|
||||||
const Varying getOutput() const override { return _output; }
|
const Varying getOutput() const override { return _output; }
|
||||||
Varying& editInput() override { return _input; }
|
Varying& editInput() override { return _input; }
|
||||||
|
|
||||||
template <class In> void feedInput(const In& in) { _concept->editInput().template edit<In>() = in; }
|
|
||||||
template <class S> void feedInput(int index, const S& inS) { (_concept->editInput().template editN<I>(index)).template edit<S>() = inS; }
|
|
||||||
|
|
||||||
template <class... A>
|
template <class... A>
|
||||||
Model(const std::string& name, const Varying& input, QConfigPointer config, A&&... args) :
|
Model(const std::string& name, const Varying& input, QConfigPointer config, A&&... args) :
|
||||||
Concept(name, config),
|
Concept(name, config),
|
||||||
|
@ -185,6 +182,9 @@ public:
|
||||||
QConfigPointer& getConfiguration() const { return _concept->getConfiguration(); }
|
QConfigPointer& getConfiguration() const { return _concept->getConfiguration(); }
|
||||||
void applyConfiguration() { return _concept->applyConfiguration(); }
|
void applyConfiguration() { return _concept->applyConfiguration(); }
|
||||||
|
|
||||||
|
template <class I> void feedInput(const I& in) { _concept->editInput().template edit<I>() = in; }
|
||||||
|
template <class I, class S> void feedInput(int index, const S& inS) { (_concept->editInput().template editN<I>(index)).template edit<S>() = inS; }
|
||||||
|
|
||||||
template <class T> T& edit() {
|
template <class T> T& edit() {
|
||||||
auto concept = std::static_pointer_cast<typename T::JobModel>(_concept);
|
auto concept = std::static_pointer_cast<typename T::JobModel>(_concept);
|
||||||
assert(concept);
|
assert(concept);
|
||||||
|
|
Loading…
Reference in a new issue