MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / LoadLayoutFromString

Method LoadLayoutFromString

Source/ModularSynth.cpp:2513–2527  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2511}
2512
2513bool ModularSynth::LoadLayoutFromString(std::string jsonString)
2514{
2515 ofxJSONElement root;
2516 bool loaded = root.parse(jsonString);
2517
2518 if (!loaded)
2519 {
2520 LogEvent("Couldn't load, error parsing json string", kLogEventType_Error);
2521 ofLog() << jsonString;
2522 return false;
2523 }
2524
2525 LoadLayout(root);
2526 return true;
2527}
2528
2529void ModularSynth::LoadLayout(ofxJSONElement json)
2530{

Callers

nothing calls this directly

Calls 2

ofLogClass · 0.85
parseMethod · 0.80

Tested by

no test coverage detected