Browse Source

Add Param::set/getValue()

tags/v1.0.0
Andrew Belt 6 years ago
parent
commit
4f491892fa
2 changed files with 10 additions and 2 deletions
  1. +2
    -2
      Makefile
  2. +8
    -0
      include/engine/Param.hpp

+ 2
- 2
Makefile View File

@@ -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




+ 8
- 0
include/engine/Param.hpp View File

@@ -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);


Loading…
Cancel
Save