MCPcopy Create free account
hub / github.com/MITK/MITK / EditorInfoToJson

Function EditorInfoToJson

Modules/RESTAPI/src/mitkRenderingController.cpp:660–673  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

658namespace
659{
660 nlohmann::json EditorInfoToJson(const mitk::EditorInfo& info, bool includeWindowList)
661 {
662 nlohmann::json j;
663 j["alias"] = info.alias;
664 j["plugin_id"] = info.pluginId;
665 j["active"] = info.active;
666 if (includeWindowList)
667 {
668 j["windows"] = nlohmann::json::array();
669 for (const auto& id : info.windowIds)
670 j["windows"].push_back(id);
671 }
672 return j;
673 }
674
675 bool IsValidStandardViewName(const std::string& v)
676 {

Callers 3

HandleGET_editorsMethod · 0.85
HandleGET_mxnInfoMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected