| 127 | } // namespace detail |
| 128 | |
| 129 | DaylightingDeviceShelf::DaylightingDeviceShelf(const SubSurface& subSurface) |
| 130 | : ModelObject(DaylightingDeviceShelf::iddObjectType(), subSurface.model()) { |
| 131 | OS_ASSERT(getImpl<detail::DaylightingDeviceShelf_Impl>()); |
| 132 | |
| 133 | bool subSurfaceOk = false; |
| 134 | if (subSurface.allowDaylightingDeviceShelf()) { |
| 135 | if (!subSurface.daylightingDeviceShelf()) { |
| 136 | subSurfaceOk = true; |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | if (!subSurfaceOk) { |
| 141 | this->remove(); |
| 142 | LOG_AND_THROW("Cannot create DaylightingDeviceShelf for SubSurface '" << subSurface.name().get() << "'"); |
| 143 | } |
| 144 | |
| 145 | bool test = setPointer(OS_DaylightingDevice_ShelfFields::WindowName, subSurface.handle()); |
| 146 | OS_ASSERT(test); |
| 147 | } |
| 148 | |
| 149 | IddObjectType DaylightingDeviceShelf::iddObjectType() { |
| 150 | IddObjectType result(IddObjectType::OS_DaylightingDevice_Shelf); |
nothing calls this directly
no test coverage detected