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

Method isInFile

src/utilities/idd/IddFileAndFactoryWrapper.cpp:246–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244// QUERIES
245
246bool IddFileAndFactoryWrapper::isInFile(IddObjectType objectType) const {
247 if (m_iddFile) {
248 OptionalIddObject candidate = m_iddFile->getObject(objectType);
249 return candidate.has_value();
250 } else if (m_iddFileType) {
251 return IddFactory::instance().isInFile(objectType, *m_iddFileType);
252 }
253
254 LOG_AND_THROW("Invalid IddFactoryWrapper has no IddFile set.");
255 return false;
256}
257
258bool IddFileAndFactoryWrapper::isInFile(const std::string& objectName) const {
259 if (m_iddFile) {

Callers 5

validityReportMethod · 0.80
isInIddFileMethod · 0.80
validityReportMethod · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80

Calls 2

getObjectMethod · 0.45
typeMethod · 0.45

Tested by 2

TEST_FFunction · 0.64
TEST_FFunction · 0.64