OSSIA
Open Scenario System for Interactive Application
Loading...
Searching...
No Matches
generic_device.hpp
1#pragma once
2
3#include <ossia/detail/string_view.hpp>
4#include <ossia/network/base/device.hpp>
5#include <ossia/network/generic/generic_node.hpp>
6namespace ossia::net
7{
8class OSSIA_EXPORT generic_device
10 , public generic_node
11{
12public:
13 explicit generic_device(std::string name = "");
14 generic_device(const generic_device&) = delete;
15 generic_device(generic_device&&) = delete;
16 generic_device& operator=(const generic_device&) = delete;
17 generic_device& operator=(generic_device&&) = delete;
18
19 generic_device(
20 std::unique_ptr<ossia::net::protocol_base> protocol_base, std::string name);
21
22 const ossia::net::node_base& get_root_node() const override { return *this; }
23 ossia::net::node_base& get_root_node() override { return *this; }
24
25 using generic_node::get_name;
26 using generic_node::set_name;
27
28 ~generic_device();
29};
30}
Root of a device tree.
Definition ossia/network/base/device.hpp:58
The node_base class.
Definition node.hpp:48