Output.h 505 B

123456789101112131415161718192021222324252627
  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. std::string _type;
  9. bool _changed;
  10. json _value;
  11. public:
  12. Output(const std::string& type, const json& initial);
  13. const json& getValue() override;
  14. json& getValueInternal();
  15. std::string getType() override;
  16. bool hasChanges() override;
  17. void resetChange() override;
  18. };
  19. }
  20. #endif