ProcessorBase.h 912 B

1234567891011121314151617181920212223242526
  1. #ifndef MDD_PROCESSORBASE_H
  2. #define MDD_PROCESSORBASE_H
  3. #include "Input.h"
  4. #include "IProcessor.h"
  5. #include "HandlerModule.h"
  6. namespace mdd {
  7. class ProcessorBase : IProcessor{
  8. std::vector<HandlerModule> _inputs;
  9. std::vector<HandlerModule> _outputs;
  10. std::vector<std::shared_ptr<IModule>> _modules;
  11. public:
  12. int addModule(std::shared_ptr<IModule> module) override ;
  13. int addInput(int moduleHandler, int inputHandler);
  14. json& setInputDefaultValue(int handle) override;
  15. const json& getInputValue(int handle) override;
  16. bool connectInput(int handle, std::shared_ptr<IOutput> output) override;
  17. std::vector<std::string> getInputs() override;
  18. std::vector<std::string> getOutputs() override;
  19. std::shared_ptr<IOutput> getOutput(int handle) override;
  20. int addOutput(int moduleHandler, int outputHandler);
  21. };
  22. }
  23. #endif