diff --git a/src/lib/par/disposition.hpp b/src/lib/par/disposition.hpp index 14b47c839..17301530a 100644 --- a/src/lib/par/disposition.hpp +++ b/src/lib/par/disposition.hpp @@ -68,6 +68,10 @@ namespace par { VAL val_; Provision* src_; + /* === Provision Interface === */ + void retrieveInto (ValBuff&) const override; + void setValFrom (ValBuff const&) override; + public: ParamData (VAL initVal) : val_{std::move (initVal)} @@ -80,6 +84,22 @@ namespace par { + template + void + ParamData::retrieveInto (ValBuff& target) const + { + asValue(target) = val_; + } + + template + void + ParamData::setValFrom (ValBuff const& newVal) + { + val_ = asValue(newVal); + } + + + template X Disposition::extract() const diff --git a/tests/16parameter.tests b/tests/16parameter.tests index 26060add7..4eeef4a77 100644 --- a/tests/16parameter.tests +++ b/tests/16parameter.tests @@ -2,7 +2,7 @@ TESTING "Library Test Suite: parameters" ./test-suite --group=param -PLANNED "Parameter Values" Parameter_test <().build(); CHECK (0 == par.getVal()); diff --git a/wiki/thinkPad.ichthyo.mm b/wiki/thinkPad.ichthyo.mm index 6a32c8eae..8eb9679e5 100644 --- a/wiki/thinkPad.ichthyo.mm +++ b/wiki/thinkPad.ichthyo.mm @@ -84522,13 +84522,14 @@ - + - + + @@ -84549,6 +84550,8 @@ + + @@ -84636,22 +84639,32 @@ + + + + + + + - - - - + + + + - - + + - - + + + + +