Core: Add method ProjectFile::containsFile

This commit is contained in:
wmayer
2024-11-15 12:24:20 +01:00
committed by Chris Hennes
parent 52fe0eec53
commit 5daaf23980
2 changed files with 12 additions and 0 deletions

View File

@@ -461,6 +461,13 @@ void ProjectFile::findFiles(XERCES_CPP_NAMESPACE_QUALIFIER DOMNode* node,
}
}
bool ProjectFile::containsFile(const std::string& name) const
{
zipios::ZipFile project(stdFile);
auto entry = project.getEntry(name);
return entry != nullptr;
}
std::list<std::string> ProjectFile::getInputFiles(const std::string& name) const
{
// <ObjectData Count="1">