SimpleIODevice.hpp
1 #pragma once
2 #include <ossia/detail/config.hpp>
3 #if defined(OSSIA_PROTOCOL_SIMPLEIO)
4 #include <Device/Protocol/DeviceInterface.hpp>
5 
6 namespace Protocols
7 {
8 class SimpleIODevice final : public Device::OwningDeviceInterface
9 {
10 
11  W_OBJECT(SimpleIODevice)
12 public:
13  SimpleIODevice(
14  const Device::DeviceSettings& settings,
15  const ossia::net::network_context_ptr& ctx);
16  ~SimpleIODevice();
17 
18  bool reconnect() override;
19  void disconnect() override;
20 
21 private:
22  const ossia::net::network_context_ptr& m_ctx;
23 };
24 }
25 #endif
Definition: DeviceInterface.hpp:184
Definition: DeviceSettings.hpp:16