奥特QT DDS 插件库
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

24 строки
434B

  1. #pragma once
  2. #include <QObject>
  3. #include "hello_world_publisher.hpp"
  4. #include <memory>
  5. class DDSManager : public QObject
  6. {
  7. Q_OBJECT
  8. public:
  9. explicit DDSManager(QObject *parent = nullptr);
  10. ~DDSManager();
  11. bool init();
  12. Q_INVOKABLE void publishOnce();
  13. signals:
  14. void messagePublished(const QString& message, int index);
  15. private:
  16. std::unique_ptr<HelloWorldPublisher> publisher_;
  17. };