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

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