| 194 | } |
| 195 | |
| 196 | Model Model_Impl::model() const { |
| 197 | // const cast looks pretty bad but is justified here as this operation does not |
| 198 | // modify the model, this is similar to a copy constructor, don't abuse it though |
| 199 | return {std::dynamic_pointer_cast<Model_Impl>(std::const_pointer_cast<openstudio::detail::Workspace_Impl>(this->shared_from_this()))}; |
| 200 | } |
| 201 | |
| 202 | bool Model_Impl::setIddFile(IddFileType iddFileType) { |
| 203 | OS_ASSERT(iddFileType == IddFileType::OpenStudio); |
no outgoing calls