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

Function parseParm

tutorials/common/scenegraph/xml_parser.cpp:29–34  ·  view source on GitHub ↗

! parse XML parameter */

Source from the content-addressed store, hash-verified

27
28 /*! parse XML parameter */
29 void parseParm(Ref<Stream<Token> >& cin, std::map<std::string,std::string>& parms)
30 {
31 std::string name = cin->get().Identifier();
32 if (cin->get() != Token::Sym("=")) THROW_RUNTIME_ERROR(cin->unget().Location().str()+": symbol \"=\" expected");
33 parms[name] = cin->get().String();
34 }
35
36 /*! parse XML header */
37 Ref<XML> parseHeader(Ref<Stream<Token> >& cin)

Callers 2

parseHeaderFunction · 0.85
parseXMLFunction · 0.85

Calls 4

IdentifierMethod · 0.80
StringMethod · 0.80
getMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected