34#include <NDEVR/Model.h>
35#include <NDEVR/DesignObjectUpdateTarget.h>
36#include <NDEVR/TimeSpan.h>
37#include <NDEVR/String.h>
39#if NDEVR_SUPPORTS_THREADING
44 class DesignObjectLookup;
46 class DeviceUpdateThread;
58 void setWarningCallback(
const std::function<
void(
const Exception& warning,
ProgressInfo* log)>& warning_callback);
66 virtual void showWarning(
const Exception& warning)
const;
71#if NDEVR_SUPPORTS_THREADING
72 DeviceUpdateThread* m_update_thread =
nullptr;
75#if NDEVR_SUPPORTS_THREADING
80 DeviceUpdateThread(
const DeviceUpdateThread&) =
delete;
81 DeviceUpdateThread(DeviceUpdateThread&&) =
delete;
82 virtual ~DeviceUpdateThread()
override;
83 virtual void run()
override;
89 volatile bool m_is_running;
Definition DesignObjectLookup.h:61
Definition DesignObjectUpdateTarget.h:8
std::function< void(const Exception &warning, ProgressInfo *log)> m_warning_callback
Definition Device.h:69
static DesignObjectLookup * s_default_lookup
Definition Device.h:70
virtual void setLog(ProgressInfo *log)
Definition Device.h:52
virtual void endUpdates()
Definition Device.h:56
ProgressInfo * m_log
Definition Device.h:68
virtual TimeSpan updateInterval() const
Definition Device.h:55
virtual void update()
Definition Device.h:54
ProgressInfo * deviceLog() const
Definition Device.h:57
Definition Exception.hpp:56
Definition ProgressInfo.hpp:43
Represents a timestamp with utilities for manipulation and conversion.
Definition Time.h:54
Definition TranslatedString.h:9