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

Method outputDebuggingData

src/model/Model.cpp:335–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 1

modelMethod · 0.95

Tested by

no test coverage detected