MCPcopy Create free account
hub / github.com/Xtra-Computing/thundersvm / convertToString

Method convertToString

src/thundersvm/util/log.cpp:49–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47// LevelHelper
48
49 const char* LevelHelper::convertToString(Level level) {
50 // Do not use switch over strongly typed enums because Intel C++ compilers dont support them yet.
51 if (level == Level::Global) return "GLOBAL";
52 if (level == Level::Debug) return "DEBUG";
53 if (level == Level::Info) return "INFO";
54 if (level == Level::Warning) return "WARNING";
55 if (level == Level::Error) return "ERROR";
56 if (level == Level::Fatal) return "FATAL";
57 if (level == Level::Verbose) return "VERBOSE";
58 if (level == Level::Trace) return "TRACE";
59 return "UNKNOWN";
60 }
61
62 struct StringToLevelItem {
63 const char* levelString;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected