| 333 | } |
| 334 | |
| 335 | boost::optional<OutputDebuggingData> Model_Impl::outputDebuggingData() const { |
| 336 | if (m_cachedOutputDebuggingData) { |
| 337 | return m_cachedOutputDebuggingData; |
| 338 | } |
| 339 | |
| 340 | boost::optional<OutputDebuggingData> result = this->model().getOptionalUniqueModelObject<OutputDebuggingData>(); |
| 341 | if (result) { |
| 342 | m_cachedOutputDebuggingData = result; |
| 343 | result->getImpl<OutputDebuggingData_Impl>() |
| 344 | ->OutputDebuggingData_Impl::onRemoveFromWorkspace.connect<Model_Impl, &Model_Impl::clearCachedOutputDebuggingData>( |
| 345 | const_cast<openstudio::model::detail::Model_Impl*>(this)); |
| 346 | } |
| 347 | |
| 348 | return m_cachedOutputDebuggingData; |
| 349 | } |
| 350 | |
| 351 | boost::optional<OutputJSON> Model_Impl::outputJSON() const { |
| 352 | if (m_cachedOutputJSON) { |