Output.h 784 B

12345678910111213141516171819202122232425262728
  1. #ifndef MDD_OUTPUT_H
  2. #define MDD_OUTPUT_H
  3. #include "IOutput.h"
  4. #include "IModule.h"
  5. namespace mdd {
  6. class Output : public IOutput{
  7. private:
  8. bool _changed;
  9. json _value;
  10. std::string _prefix;
  11. std::string _type;
  12. int _appendix;
  13. public:
  14. Output(const std::string& type, int appendix, const json& initial);
  15. const json& getValue() override;
  16. json& getValueInternal() override;
  17. bool hasChanged() override;
  18. void resetChange() override;
  19. std::string setType(std::string type) override;
  20. std::string getType() override;
  21. std::string getID() override;
  22. std::string setPrefix(std::string prefix) override;
  23. std::string setAppendix(int appendix) override;
  24. };
  25. }
  26. #endif