Loading...
Searching...
No Matches
ValuePrettyPrint.hpp
1#pragma once
2#include <ossia/network/value/value.hpp>
3
4#include <score_lib_state_export.h>
5
6#include <string>
7
8namespace State
9{
23
49SCORE_LIB_STATE_EXPORT
51 std::string& out, const ossia::value& v, int depth = 0,
52 const PrettyPrintOptions& opts = {});
53
55SCORE_LIB_STATE_EXPORT
56void printValue(std::string& out, const ossia::value& v);
57}
Utilities for OSSIA data structures.
Definition DeviceInterface.hpp:35
void printValue(std::string &out, const ossia::value &v)
Single-line rendering of v, identical to fmt::format("{}", v), appended to out.
Definition ValuePrettyPrint.cpp:153
void prettyPrintValue(std::string &out, const ossia::value &v, int depth, const PrettyPrintOptions &opts)
Appends a multi-line, indented rendering of v to out.
Definition ValuePrettyPrint.cpp:147
Layout knobs for prettyPrintValue.
Definition ValuePrettyPrint.hpp:14
int maxInlineElements
Definition ValuePrettyPrint.hpp:19
int elementsPerLine
Elements per line when wrapping a long container of scalars.
Definition ValuePrettyPrint.hpp:21
int indent
Spaces added per nesting level.
Definition ValuePrettyPrint.hpp:16