Zao SDK for Jetson / libzao-endpoint API リファレンス 1.5.0.0 (2024-09-25)
Loading...
Searching...
No Matches
ControlInterface.hpp
1#ifndef ZAO_ENDPOINT_MONITOR_CONTROL_INTERFACE_HPP_
2#define ZAO_ENDPOINT_MONITOR_CONTROL_INTERFACE_HPP_
3
4#include <memory>
5
6#include "../EventSourceInterface.hpp"
7
8namespace zao {
9namespace endpoint {
10namespace monitor {
11
12template <class T>
14
20 public:
28 virtual void Unobserve() = 0;
29
37 virtual bool IsObserving() const noexcept = 0;
38
39 virtual ~ControlCommonInterface() noexcept = default;
40};
41
49template <class T>
53 public:
68 virtual bool GetLatest(T& buffer) = 0;
69
70 virtual ~ControlInterface() noexcept = default;
71};
72
73} // namespace monitor
74} // namespace endpoint
75} // namespace zao
76
77#endif // ZAO_ENDPOINT_MONITOR_CONTROL_INTERFACE_HPP_
イベントを生成するクラスの共通インターフェース
Definition EventSourceInterface.hpp:27
監視制御オブジェクトの共通インターフェース。
Definition ControlInterface.hpp:19
virtual bool IsObserving() const noexcept=0
監視中か否かを取得する。
virtual void Unobserve()=0
監視を停止する。
特定の監視情報に対する監視の制御を行うインターフェース
Definition ControlInterface.hpp:52
virtual bool GetLatest(T &buffer)=0
最後に受信した情報を取得する。
特定の監視情報に対するコールバックインターフェース
Definition MonitorInterface.hpp:90
Zao製品共通の名前空間
Definition FactoryInterface.hpp:11