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

Method getString

tutorials/common/scenegraph/xml_loader.cpp:178–182  ·  view source on GitHub ↗

! Extracts a named string out of the container. */

Source from the content-addressed store, hash-verified

176
177 /*! Extracts a named string out of the container. */
178 std::string getString(const char* name, std::string def = "") const {
179 std::map<std::string,Variant>::const_iterator i = m.find(name);
180 if (i == m.end() || (*i).second.type != Variant::STRING) return def;
181 return (*i).second.getString();
182 }
183
184 /*! Extracts a named texture out of the container. */
185 std::shared_ptr<Texture> getTexture(const char* name) const {

Callers 9

VerifyApplicationMethod · 0.45
parse_benchmark_listMethod · 0.45
TutorialMethod · 0.45
parseCommandLineFunction · 0.45
TutorialBenchmarkMethod · 0.45
ApplicationMethod · 0.45
parseCommandLineMethod · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected