OSSIA
Open Scenario System for Interactive Application
Loading...
Searching...
No Matches
osc_writer.hpp
1#pragma once
2#include <ossia/network/common/network_logger.hpp>
4
5#include <oscpack/ip/UdpSocket.h>
6namespace ossia::oscquery
7{
8// TODO this export is only needed for tests...
9struct OSSIA_EXPORT osc_writer
10{
11 static std::string to_message(const ossia::net::parameter_base&, const ossia::value&);
12 static std::string
13 to_message(const ossia::net::full_parameter_data&, const ossia::value&);
14 static std::string
15 to_message(std::string_view address, const value& v, const unit_t& u);
16
17 static void send_message(
19 oscpack::UdpTransmitSocket&);
20 static void send_message(
22 oscpack::UdpTransmitSocket&);
23
24 static void write_value(
25 std::string_view address, const value& v, const unit_t& u,
26 oscpack::UdpTransmitSocket& socket);
27};
28}
The parameter_base class.
Definition ossia/network/base/parameter.hpp:48
The value class.
Definition value.hpp:173
Full information about a parameter.
Definition parameter_data.hpp:61