2#include <ossia/detail/config.hpp>
3#if defined(OSSIA_HAS_FMT)
5#include <ossia/network/base/node.hpp>
7#include <ossia/network/base/osc_address.hpp>
8#include <ossia/network/base/parameter.hpp>
10#include <ossia/network/value/value.hpp>
17struct state_print_visitor
22 void operator()(
const state& s)
24 out << padding <<
"state {\n";
25 padding.push_back(
' ');
27 ossia::apply_nonnull(*this, sub);
32 void operator()(
const message& m)
40 void operator()(
const piecewise_message& m)
43 <<
"piecewise_message: " << ossia::net::address_string_from_node(m.address.get())
47 template <std::
size_t N>
48 void operator()(
const piecewise_vec_message<N>& m)
50 out << padding <<
"piecewise_vec_message<" << N
51 <<
">: " << ossia::net::address_string_from_node(m.address.get()) <<
" => "
55 void operator()(
const ossia::monostate&) { out <<
"no state\n"; }
OSSIA_EXPORT std::string value_to_pretty_string(const ossia::value &val)
getValueAsString Returns a string corresponding to the value
std::string to_pretty_string(const value_with_unit &v)
to_pretty_string Pretty string of unit & value
Definition dataspace_visitors.cpp:242