3#include <ossia/detail/string_view.hpp> 
    4#include <ossia/network/exceptions.hpp> 
    5#include <ossia/network/value/value.hpp> 
   11enum class minuit_command : 
char 
   18enum class minuit_operation : 
char 
   25enum class minuit_action : 
int 
   38enum class minuit_type : 
char 
   49enum class minuit_attribute
 
   67  RampFunctionParameters
 
   71std::string_view to_minuit_attribute_text(minuit_attribute str);
 
   77std::string_view to_minuit_type_text(
const ossia::value& val);
 
   85      constexpr_return(ossia::make_string_view(
"none"));
 
   87      constexpr_return(ossia::make_string_view(
"integer"));
 
   89      constexpr_return(ossia::make_string_view(
"decimal"));
 
   91      constexpr_return(ossia::make_string_view(
"boolean"));
 
   93      constexpr_return(ossia::make_string_view(
"string"));
 
   98      constexpr_return(ossia::make_string_view(
"array"));
 
  100      constexpr_return(ossia::make_string_view(
"map"));
 
  102      throw invalid_value_type_error(
"to_minuit_type_text: Invalid type");
 
  107inline ossia::value value_from_minuit_type_text(std::string_view str)
 
  119      return std::string{};
 
  123      return ossia::impulse{};
 
  126      return value{std::vector<ossia::value>{}};
 
  142      return ossia::val_type::FLOAT;
 
  161    case ossia::access_mode::BI:
 
  162      constexpr_return(ossia::make_string_view(
"parameter"));
 
  164      constexpr_return(ossia::make_string_view(
"return"));
 
  166      constexpr_return(ossia::make_string_view(
"message"));
 
  168      throw parse_error(
"to_minuit_service_text: Invalid access mode");
 
  178      return ossia::access_mode::BI;
 
  184      throw parse_error(
"from_minuit_service_text: Invalid access mode");
 
  193    case ossia::bounding_mode::FREE:
 
  194      constexpr_return(ossia::make_string_view(
"none"));
 
  196      constexpr_return(ossia::make_string_view(
"both"));
 
  198      constexpr_return(ossia::make_string_view(
"wrap"));
 
  200      constexpr_return(ossia::make_string_view(
"fold"));
 
  202      constexpr_return(ossia::make_string_view(
"low"));
 
  204      constexpr_return(ossia::make_string_view(
"high"));
 
  206      throw parse_error(
"to_minuit_bounding_text: Invalid bounding mode");
 
  216      return ossia::bounding_mode::FREE;
 
  228      throw parse_error(
"from_minuit_bounding_text: Invalid bounding mode");
 
  233inline minuit_command get_command(
char str)
 
  240      return static_cast<minuit_command
>(str);
 
  242      throw parse_error(
"get_command: unhandled command");
 
  247inline minuit_type get_type(
char str)
 
  258      return static_cast<minuit_type
>(str);
 
  260      return minuit_type::None;
 
  262  return minuit_type::None;
 
  265inline minuit_operation get_operation(
char str)
 
  272      return static_cast<minuit_operation
>(str);
 
  274      throw parse_error(
"get_operation: unhandled operation");
 
  279inline minuit_operation get_operation(std::string_view str)
 
  281  return get_operation(str[0]);
 
The value class.
Definition value.hpp:173
@ Get
Definition ossia-cpp98.hpp:67
val_type
Enum to represent the types that a value can take.
Definition parameter_properties.hpp:16
bounding_mode
Address behaviors at crossing domain boundaries.
Definition parameter_properties.hpp:56
@ CLIP
The bounds are ignored.
auto get_attribute(const any_map &e, std::string_view name)
get_attribute Get an attribute of an any_map.
Definition any_map.hpp:29
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.