2#include <ossia/detail/config.hpp> 
    3#if defined(OSSIA_HAS_FMT) 
    4#include <ossia/detail/fmt.hpp> 
    5#include <ossia/detail/optional.hpp> 
    6#include <ossia/network/base/node.hpp> 
    7#include <ossia/network/base/parameter.hpp> 
    8#include <ossia/network/common/parameter_properties.hpp> 
   10#include <ossia/network/domain/domain.hpp> 
   11#include <ossia/network/value/format_value.hpp> 
   25  template <
typename ParseContext>
 
   26  constexpr auto parse(ParseContext& ctx)
 
   31  template <
typename FormatContext>
 
   34    string_view name = 
"unknown";
 
   37      case ossia::access_mode::BI:
 
   47    return formatter<string_view>{}.format(name, ctx);
 
   54  template <
typename ParseContext>
 
   55  constexpr auto parse(ParseContext& ctx)
 
   60  template <
typename FormatContext>
 
   63    string_view name = 
"unknown";
 
   66      case ossia::bounding_mode::FREE:
 
   85    return formatter<string_view>::format(name, ctx);
 
   90struct formatter<
ossia::domain> final : formatter<string_view>
 
   92  template <
typename ParseContext>
 
   93  constexpr auto parse(ParseContext& ctx)
 
   98  template <
typename FormatContext>
 
  101    return formatter<string_view>::format(e.to_pretty_string(), ctx);
 
  106struct formatter<
ossia::net::node_base>
 
  108  template <
typename ParseContext>
 
  109  constexpr auto parse(ParseContext& ctx)
 
  114  template <
typename FormatContext>
 
  119    while(parent != 
nullptr)
 
  125    if(
auto p = n.get_parameter())
 
  127      return fmt::format_to(
 
  129          "{:<{}} : {}, AccessMode({}), BoundingMode({}), Domain({}), " 
  131          n.
get_name(), num_indent, p->value(), p->get_access(), p->get_bounding(),
 
  136      return fmt::format_to(ctx.out(), 
"{}{}", num_indent, n.
get_name());
 
The node_base class.
Definition node.hpp:48
virtual node_base * get_parent() const =0
Parent of this node. May be null if it is the device (i.e. root).
const std::string & get_name() const
The name of this node, e.g. "foo".
Definition node.hpp:70
access_mode
Defines Write (Set), Read (Get) or Read/Write (Bi) access to the parameter's value.
Definition ossia-cpp98.hpp:66
bounding_mode
Behaviour at the bounds of the value.
Definition ossia-cpp98.hpp:75
bounding_mode
Address behaviors at crossing domain boundaries.
Definition parameter_properties.hpp:56
@ CLIP
The bounds are ignored.
std::string_view get_pretty_unit_text(const unit_t &u)
get_pretty_unit_text Unit for human readability and debugging
Definition dataspace_visitors.cpp:43
access_mode
Address behaviors at crossing domain boundaries time.
Definition parameter_properties.hpp:46
@ GET
The value can be retrieved and changed.
@ SET
The value can be retrieved.
domain A domain of values
Definition domain_base.hpp:23