MCPcopy Create free account
hub / github.com/RenderKit/oidn / getString

Method getString

core/device.cpp:64–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62 }
63
64 const char* PhysicalDevice::getString(const std::string& name) const
65 {
66 if (name == "name")
67 return this->name.c_str();
68 else
69 throw Exception(Error::InvalidArgument, "unknown physical device parameter or type mismatch: '" + name + "'");
70 }
71
72 Data PhysicalDevice::getData(const std::string& name) const
73 {

Callers 1

Calls 2

ExceptionFunction · 0.85
c_strMethod · 0.80

Tested by

no test coverage detected