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

Method outputControlTableStyle

src/model/Model.cpp:286–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284 }
285
286 boost::optional<OutputControlTableStyle> Model_Impl::outputControlTableStyle() const {
287 if (m_cachedOutputControlTableStyle) {
288 return m_cachedOutputControlTableStyle;
289 }
290
291 boost::optional<OutputControlTableStyle> result = this->model().getOptionalUniqueModelObject<OutputControlTableStyle>();
292 if (result) {
293 m_cachedOutputControlTableStyle = result;
294 result->getImpl<OutputControlTableStyle_Impl>()
295 .get()
296 ->OutputControlTableStyle_Impl::onRemoveFromWorkspace.connect<Model_Impl, &Model_Impl::clearCachedOutputControlTableStyle>(
297 const_cast<openstudio::model::detail::Model_Impl*>(this));
298 }
299
300 return m_cachedOutputControlTableStyle;
301 }
302
303 boost::optional<OutputControlTimestamp> Model_Impl::outputControlTimestamp() const {
304 if (m_cachedOutputControlTimestamp) {

Callers

nothing calls this directly

Calls 2

modelMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected