MCPcopy Create free account
hub / github.com/RenderKit/ospray / getArgString

Function getArgString

ospray/common/OSPCommon.cpp:81–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81std::string getArgString(const std::string &s)
82{
83 std::vector<std::string> tokens = rkcommon::utility::split(s, '=');
84 if (tokens.size() < 2) {
85 std::stringstream ss;
86 ss << "Invalid format for command-line argument " << s
87 << ". Should be formatted --osp:<parameter>=<value>";
88 postStatusMsg(ss, OSP_LOG_WARNING);
89 return "";
90 } else {
91 return tokens.back();
92 }
93}
94
95int getArgInt(const std::string &s)
96{

Callers 3

ospInitFunction · 0.85
getArgIntFunction · 0.85
initFromCommandLineFunction · 0.85

Calls 2

postStatusMsgFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected