Connector.h 760 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #ifndef CONNECTOR_H
  2. #define CONNECTOR_H
  3. #include "memory"
  4. #include "json.hpp"
  5. #include "Input.h"
  6. #include "Output.h"
  7. #include "ModuleHTTP.h"
  8. #include "ModuleMath.h"
  9. #include "ModuleMerge.h"
  10. #include "ModuleSplitt.h"
  11. #include "ModuleSQL.h"
  12. #include "ModuleSwitch.h"
  13. #include "ProcessorStandard.h"
  14. namespace mdd {
  15. class Connector {
  16. public:
  17. /*
  18. json{
  19. "type": "StandardProcessor",
  20. ("params": [param1, param2,...])
  21. ("subs":[
  22. {
  23. "type": "Math",
  24. "params":[param1,param2,...]
  25. },
  26. {
  27. "type": "Math",
  28. "params":[param1,param2,...]
  29. }
  30. ],
  31. "connections":[[in1,out1],[in2,out2],...]
  32. })
  33. */
  34. static std::shared_ptr<IModule> decode(const json& structure);
  35. static const json& encode(const std::shared_ptr<IModule>& structure);
  36. };
  37. }
  38. #endif