LoadAlgorithm.h 505 B

123456789101112131415161718192021222324252627282930313233
  1. #pragma once
  2. #include <qmap.h>
  3. #include <qmetatype.h>
  4. #include <QtCore/qlibrary.h>
  5. #include <AlgorithmModel.h>
  6. #include <QVariant.h>
  7. #include <QTextBrowser>
  8. using namespace std;
  9. class LoadAlgorithm
  10. {
  11. public:
  12. LoadAlgorithm();
  13. ~LoadAlgorithm();
  14. public:
  15. bool LoadAllAlgorithm(QString pluginName);
  16. bool Init();
  17. private:
  18. //еĶ«Î÷
  19. QVariantMap algorithmConfigurationTable;
  20. bool initialAlgorithmConfiguration(QString jsonPath);
  21. public:
  22. QMap<std::string, AlgorithmModel*> m_plugins ;
  23. };