MCPcopy Create free account
hub / github.com/LunarG/VulkanTools / LoadMetaHeader

Function LoadMetaHeader

vkconfig_core/header.cpp:24–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22#include "json.h"
23
24void LoadMetaHeader(Header& header, const QJsonObject& json_object) {
25 header.label = ReadStringValue(json_object, "label");
26 header.description = ReadStringValue(json_object, "description");
27 if (json_object.value("detailed") != QJsonValue::Undefined) {
28 header.detailed = ReadStringValue(json_object, "detailed");
29 }
30 if (json_object.value("url") != QJsonValue::Undefined) {
31 header.url = Path(ReadStringValue(json_object, "url"), false);
32 }
33 if (json_object.value("status") != QJsonValue::Undefined) {
34 header.status = GetStatusType(ReadStringValue(json_object, "status").c_str());
35 }
36 if (json_object.value("deprecated_by_key") != QJsonValue::Undefined) {
37 header.deprecated_by_key = ReadStringValue(json_object, "deprecated_by_key");
38 }
39 if (json_object.value("view") != QJsonValue::Undefined) {
40 header.view = GetSettingView(ReadStringValue(json_object, "view").c_str());
41 }
42 if (json_object.value("platforms") != QJsonValue::Undefined) {
43 header.platform_flags = GetPlatformFlags(ReadStringArray(json_object, "platforms"));
44 }
45 if (json_object.value("expanded") != QJsonValue::Undefined) {
46 header.expanded = ReadBoolValue(json_object, "expanded");
47 }
48}

Callers 3

LoadMethod · 0.85
LoadMethod · 0.85
AddSettingsSetMethod · 0.85

Calls 7

ReadStringValueFunction · 0.85
PathClass · 0.85
GetStatusTypeFunction · 0.85
GetSettingViewFunction · 0.85
GetPlatformFlagsFunction · 0.85
ReadStringArrayFunction · 0.85
ReadBoolValueFunction · 0.85

Tested by

no test coverage detected