Connector.h 712 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 "ModuleMerge.h"
  8. #include "ModuleSplitt.h"
  9. #include "ModuleSQL.h"
  10. #include "ModuleSwitch.h"
  11. #include "ProcessorStandard.h"
  12. namespace mdd {
  13. class Connector {
  14. public:
  15. /*
  16. json{
  17. "type": "StandardProcessor",
  18. ("params": [param1, param2,...])
  19. ("subs":[
  20. {
  21. "type": "Math",
  22. "params":[param1,param2,...]
  23. },
  24. {
  25. "type": "Math",
  26. "params":[param1,param2,...]
  27. }
  28. ],
  29. "connections":[[in1,out1],[in2,out2],...]
  30. })
  31. */
  32. static std::shared_ptr<IModule> decode(const json& structure);
  33. static const json& encode(const std::shared_ptr<IModule>& structure);
  34. };
  35. }
  36. #endif