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

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