Output.cpp 500 B

12345678910111213141516171819202122
  1. #include "Output.h"
  2. namespace mdd {
  3. Output::Output( const std::string& type, const json& initial) :
  4. _changed(false)
  5. {
  6. _type= type;
  7. _value = initial;
  8. }
  9. const json& Output::getValue() { return _value; }
  10. json& Output::getValueInternal() {
  11. _changed = true;
  12. return _value;
  13. }
  14. std::string Output::getType() { return _type; }
  15. bool Output::hasChanges() { return _changed; }
  16. void Output::resetChange() { _changed = false; }
  17. }