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

Function workflow_optional_string

app/workflow/workflow.cpp:71–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71bool workflow_has_field(const engine::io::json::Value & object, const std::string & key) {
72 const auto * value = object.find(key);
73 return value != nullptr && !value->is_null();
74}
75
76std::optional<std::string> workflow_optional_string(
77 const engine::io::json::Value & object,
78 const std::string & key) {
79 const auto * value = object.find(key);
80 if (value == nullptr || value->is_null()) {
81 return std::nullopt;
82 }

Callers 5

parse_step_backendFunction · 0.85
run_model_step_implFunction · 0.85
run_chunked_model_stepFunction · 0.85
run_mix_audio_stepFunction · 0.85
run_model_step_foreachFunction · 0.85

Calls 2

is_nullMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected