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

Method AsString

IntelPresentMon/AppCef/source/util/CefValues.cpp:146–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144 }
145
146 std::string CefValueTraverser::AsString() const
147 {
148 using str::ToWide;
149 if (pCefValue->GetType() == CefValueType::VTYPE_STRING)
150 {
151 return pCefValue->GetString();
152 }
153 pmlog_error(std::format("Cannot extract std::string from CEF {}",
154 CefValueTypeToString(pCefValue->GetType())
155 ));
156 throw Except<BadCefValueTraversal>();
157 }
158
159 CefValueTraverser CefValueTraverser::operator[](const char* key)
160 {

Callers 1

ToVectorMethod · 0.80

Calls 2

CefValueTypeToStringFunction · 0.85
GetTypeMethod · 0.45

Tested by

no test coverage detected