MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / workflow_optional_number

Function workflow_optional_number

app/workflow/workflow.cpp:81–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79 const std::string & key) {
80 const auto * value = object.find(key);
81 if (value == nullptr || value->is_null()) {
82 return std::nullopt;
83 }
84 return value->as_string();
85}
86
87std::optional<double> workflow_optional_number(
88 const engine::io::json::Value & object,
89 const std::string & key) {
90 const auto * value = object.find(key);
91 if (value == nullptr || value->is_null()) {
92 return std::nullopt;

Callers 5

run_convert_audio_stepFunction · 0.85
parse_step_backendFunction · 0.85
run_chunked_model_stepFunction · 0.85
run_mix_audio_stepFunction · 0.85

Calls 3

is_nullMethod · 0.80
as_numberMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected