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

Method OpenFile

code/Common/ZipArchiveIOSystem.cpp:466–478  ·  view source on GitHub ↗

----------------------------------------------------------------

Source from the content-addressed store, hash-verified

464
465// ----------------------------------------------------------------
466IOStream *ZipArchiveIOSystem::Implement::OpenFile(std::string &filename) {
467 MapArchive();
468
469 SimplifyFilename(filename);
470
471 // Find in the map
472 ZipFileInfoMap::const_iterator zip_it = m_ArchiveMap.find(filename);
473 if (zip_it == m_ArchiveMap.cend())
474 return nullptr;
475
476 const ZipFileInfo &zip_file = (*zip_it).second;
477 return zip_file.Extract(filename, m_ZipFileHandle);
478}
479
480// ----------------------------------------------------------------
481inline void ReplaceAll(std::string &data, const std::string &before, const std::string &after) {

Callers 1

OpenMethod · 0.80

Calls 1

ExtractMethod · 0.45

Tested by

no test coverage detected