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

Method logUntranslatedObjects

src/sdd/ForwardTranslator.cpp:519–533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

517 }
518
519 void ForwardTranslator::logUntranslatedObjects(const model::Model& model) {
520 auto allModelObjects = model.modelObjects();
521 for (const auto& mo : allModelObjects) {
522 // If mo is not in m_translatedObjects
523 if (m_translatedObjects.find(mo.handle()) == m_translatedObjects.end()) {
524 // If mo.iddObjectType is not int the m_ignoreTypes list
525 if (std::find(m_ignoreTypes.begin(), m_ignoreTypes.end(), mo.iddObjectType()) == m_ignoreTypes.end()) {
526 // If mo is not in the m_ignoreObjects list
527 if (std::find(m_ignoreObjects.begin(), m_ignoreObjects.end(), mo.handle()) == m_ignoreObjects.end()) {
528 LOG(Error, mo.briefDescription() << " was not translated.");
529 }
530 }
531 }
532 }
533 }
534
535} // namespace sdd
536} // namespace openstudio

Callers

nothing calls this directly

Calls 7

beginMethod · 0.80
briefDescriptionMethod · 0.80
modelObjectsMethod · 0.45
findMethod · 0.45
handleMethod · 0.45
endMethod · 0.45
iddObjectTypeMethod · 0.45

Tested by

no test coverage detected