Output.h 792 B

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