From 4f491892fab3c0ad1381cb80a9abfaaa79561e4d Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Sat, 12 Jan 2019 19:54:40 -0500 Subject: [PATCH] Add Param::set/getValue() --- Makefile | 4 ++-- include/engine/Param.hpp | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 9f1b548c..5888718f 100644 --- a/Makefile +++ b/Makefile @@ -180,7 +180,7 @@ endif # Plugin helpers -allplugins: +plugins: for f in plugins/*; do $(MAKE) -C "$$f"; done cleanplugins: @@ -189,7 +189,7 @@ cleanplugins: distplugins: for f in plugins/*; do $(MAKE) -C "$$f" dist; done -plugins: +cmdplugins: for f in plugins/*; do (cd "$$f" && ${CMD}); done diff --git a/include/engine/Param.hpp b/include/engine/Param.hpp index db71fb23..07fcc5fd 100644 --- a/include/engine/Param.hpp +++ b/include/engine/Param.hpp @@ -54,6 +54,14 @@ struct Param { paramQuantityFactory = new TParamQuantityFactory; } + float getValue() { + return value; + } + + void setValue(float value) { + this->value = value; + } + bool isBounded(); json_t *toJson(); void fromJson(json_t *rootJ);