IInput.h 444 B

123456789101112131415161718
  1. #ifndef MDD_IINPUT_H
  2. #define MDD_IINPUT_H
  3. #include "IUnique.h"
  4. #include "IOutput.h"
  5. #include "IState.h"
  6. namespace mdd{
  7. class IInput : public IUnique, public IState{
  8. public:
  9. virtual const json& getValue() = 0;
  10. virtual json& setDefaultValue() = 0;
  11. virtual bool verify(const json & data) = 0;
  12. virtual bool connect(std::shared_ptr<IOutput> output) = 0;
  13. virtual ~IInput() = default;
  14. };
  15. }
  16. #endif