QGaJedgePluginEntry.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // Created by Ht on 2022/8/29.
  3. //
  4. #ifndef INC_1_LIBDEVCPP_QJIUZHOUPLUGINENTRY_H
  5. #define INC_1_LIBDEVCPP_QJIUZHOUPLUGINENTRY_H
  6. #include "../../src/plugin/QGaCypherPluginEntry.h"
  7. #include "../../src/QGADataPool.h"
  8. #include <mqtt/Base64.h>
  9. namespace jedge {
  10. class JE_API QGaJedgePluginEntry :
  11. public QGaCypherPluginEntry {
  12. public:
  13. explicit QGaJedgePluginEntry(std::string name, std::string type = "cypher", int ver = 0) :
  14. jedge::QGaCypherPluginEntry(std::move(name), std::move(type), ver) {
  15. }
  16. QGaCypherPluginEntry *duplication(const string &name) override {
  17. auto* dup = new QGaJedgePluginEntry(name, typeKey_, ver_);
  18. dup->sn_ = sn_;
  19. return dup;
  20. }
  21. //构造时调用
  22. void setDataPool(QGADataPool &pool) override {
  23. QGaCypherPluginEntry::setDataPool(pool);
  24. //
  25. // bindGAOActionController(forEachEqual1);
  26. //需要重新载入用户自定义的函数
  27. }
  28. //重载时调用,用户自定义函数等需要在这里添加
  29. void buildSiteData(qlibc::QData &data) override {
  30. QGaCypherPluginEntry::buildSiteData(data);
  31. }
  32. };
  33. }
  34. #endif //INC_1_LIBDEVCPP_QJIUZHOUPLUGINENTRY_H