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

Method getIddFile

src/osversion/VersionTranslator.cpp:469–479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

467 }
468
469 IddFileAndFactoryWrapper VersionTranslator::getIddFile(const VersionString& version) {
470 IddFileAndFactoryWrapper result(IddFileType::OpenStudio);
471 if (version < VersionString(openStudioVersion())) {
472 OptionalIddFile iddFile = IddFactory::instance().getIddFile(IddFileType::OpenStudio, version);
473 if (!iddFile) {
474 LOG_AND_THROW("Unable to retrieve OpenStudio Version " << version.str() << " IDD from the IddFactory.");
475 }
476 result = IddFileAndFactoryWrapper(*iddFile);
477 }
478 return result;
479 }
480
481 void VersionTranslator::update(const VersionString& startVersion) {
482 auto start = m_map.find(startVersion);

Callers 8

TEST_FFunction · 0.80
iddFileMethod · 0.80
TEST_FFunction · 0.80
SetUpTestSuiteMethod · 0.80
TEST_FFunction · 0.80
SetUpTestSuiteMethod · 0.80

Calls 2

VersionStringClass · 0.50
strMethod · 0.45

Tested by 5

TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64
SetUpTestSuiteMethod · 0.64