MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / GetLevelMapNarrow

Function GetLevelMapNarrow

IntelPresentMon/CommonUtilities/log/Level.cpp:14–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12 }
13
14 std::map<std::string, Level> GetLevelMapNarrow()
15 {
16 using namespace pmon::util::str;
17 std::map<std::string, Level> map;
18 for (int n = 0; n < (int)Level::EndOfEnumKeys; n++) {
19 const auto lvl = Level(n);
20 auto key = ToLower(GetLevelName(lvl));
21 if (!key.starts_with("level")) {
22 map[std::move(key)] = lvl;
23 }
24 }
25 return map;
26 }
27}

Callers 5

ParseLogLevel_Function · 0.85
OptionsClass · 0.85
OptionsClass · 0.85
OptionsClass · 0.85
OptionsClass · 0.85

Calls 3

ToLowerFunction · 0.85
LevelEnum · 0.70
GetLevelNameFunction · 0.70

Tested by

no test coverage detected