MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / hasFile

Method hasFile

src/utilities/bcl/BCLXML.cpp:468–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

466}
467
468bool BCLXML::hasFile(const openstudio::path& path) const {
469 bool result = false;
470
471 const openstudio::path test = openstudio::filesystem::system_complete(path);
472
473 for (const BCLFileReference& file : m_files) {
474 if (file.path() == test) {
475 result = true;
476 break;
477 }
478 }
479
480 return result;
481}
482
483bool BCLXML::removeFile(const openstudio::path& path) {
484 bool result = false;

Callers 9

require_embeddedMethod · 0.80
openMethod · 0.80
readMethod · 0.80
openMethod · 0.80
cpMethod · 0.80
test_bundle_defaultMethod · 0.80
BCLMeasureMethod · 0.80
checkForUpdatesFilesMethod · 0.80

Calls 1

pathMethod · 0.45

Tested by 1

test_bundle_defaultMethod · 0.64