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

Function parseHeader

tutorials/common/scenegraph/xml_parser.cpp:37–49  ·  view source on GitHub ↗

! parse XML header */

Source from the content-addressed store, hash-verified

35
36 /*! parse XML header */
37 Ref<XML> parseHeader(Ref<Stream<Token> >& cin)
38 {
39 Ref<XML> xml = new XML;
40 if (cin->get() != Token::Sym("<?")) THROW_RUNTIME_ERROR(cin->unget().Location().str()+": wrong XML header");
41 xml->name = cin->get().Identifier();
42 parseComments(cin);
43 while (cin->peek() != Token::Sym("?>")) {
44 parseParm(cin,xml->parms);
45 parseComments(cin);
46 }
47 cin->drop();
48 return xml;
49 }
50
51 /*! parse XML tag */
52 Ref<XML> parseXML(Ref<Stream<Token> >& cin, size_t depth)

Callers 2

PlyParserMethod · 0.85
parseXMLFunction · 0.85

Calls 6

parseCommentsFunction · 0.85
parseParmFunction · 0.85
IdentifierMethod · 0.80
dropMethod · 0.80
getMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected