2#include <Process/Monitoring/Monitor.hpp>
6#include <score_lib_process_export.h>
30class SCORE_LIB_PROCESS_EXPORT
MonitorLink final :
public QObject
35 std::function<
void(
Monitor&)> refresh,
36 std::function<
void(
Monitor*)> attached = {}, QObject* parent =
nullptr);
39 Monitor* monitor()
const noexcept {
return m_monitor.get(); }
44 return static_cast<T*
>(m_monitor.get());
48 static void setRefreshInterval(
int ms);
49 static int refreshInterval() noexcept;
55 void setWatching(
bool w);
57 const QGraphicsItem& m_view;
Definition MonitorLink.hpp:31
T * monitor_as() const noexcept
The monitor of a process is the one its node makes: a view knows its type.
Definition MonitorLink.hpp:42
The Process class.
Definition score-lib-process/Process/Process.hpp:82
Base classes and tools to implement processes and layers.
Definition JSONVisitor.hpp:1115
Definition Monitor.hpp:27