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

Function require_int

src/framework/io/yaml.cpp:262–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262std::string require_string(const FlattenedDocument & document, const std::string & key) {
263 const auto it = document.scalars.find(key);
264 if (it == document.scalars.end()) {
265 throw std::runtime_error("Missing yaml scalar key: " + key);
266 }
267 return it->second;
268}
269
270std::string optional_string(const FlattenedDocument & document, const std::string & key, std::string default_value) {
271 const auto it = document.scalars.find(key);

Callers 3

parse_configFunction · 0.85
descriptor_from_yamlFunction · 0.85

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected