Core: Add method ProjectFile::containsFile
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -148,6 +148,11 @@ public:
|
||||
* @see getInputFiles().
|
||||
*/
|
||||
std::list<PropertyFile> getPropertyFiles(const std::string& name) const;
|
||||
/**
|
||||
* If the project file contains the file \a name true is returned and
|
||||
* false otherwise
|
||||
*/
|
||||
bool containsFile(const std::string& name) const;
|
||||
/**
|
||||
* Retrieves a list of input file names referenced to the given object name.
|
||||
* This method does the same as @ref getPropertyFiles() unless that it only
|
||||
|
||||
Reference in New Issue
Block a user