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

Method outputJSON

src/model/Model.cpp:351–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

349 }
350
351 boost::optional<OutputJSON> Model_Impl::outputJSON() const {
352 if (m_cachedOutputJSON) {
353 return m_cachedOutputJSON;
354 }
355
356 boost::optional<OutputJSON> result = this->model().getOptionalUniqueModelObject<OutputJSON>();
357 if (result) {
358 m_cachedOutputJSON = result;
359 result->getImpl<OutputJSON_Impl>()->OutputJSON_Impl::onRemoveFromWorkspace.connect<Model_Impl, &Model_Impl::clearCachedOutputJSON>(
360 const_cast<openstudio::model::detail::Model_Impl*>(this));
361 }
362
363 return m_cachedOutputJSON;
364 }
365
366 boost::optional<OutputSQLite> Model_Impl::outputSQLite() const {
367 if (m_cachedOutputSQLite) {

Calls 1

modelMethod · 0.95