MCPcopy Create free account
hub / github.com/assimp/assimp / ParseFile

Method ParseFile

code/AssetLib/X3D/X3DImporter.cpp:214–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214void X3DImporter::ParseFile(const std::string &file, IOSystem *pIOHandler) {
215 ai_assert(nullptr != pIOHandler);
216
217 static const std::string mode = "rb";
218 std::unique_ptr<IOStream> fileStream(pIOHandler->Open(file, mode));
219 if (!fileStream) {
220 throw DeadlyImportError("Failed to open file " + file + ".");
221 }
222
223 XmlParser theParser;
224 if (!theParser.parse(fileStream.get())) {
225 return;
226 }
227 ParseFile(theParser);
228}
229
230void X3DImporter::ParseFile(std::istream &myIstream) {
231 XmlParser theParser;

Callers

nothing calls this directly

Calls 8

DeadlyImportErrorFunction · 0.85
LogInfoFunction · 0.85
childrenMethod · 0.80
OpenMethod · 0.45
parseMethod · 0.45
getMethod · 0.45
findNodeMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected