| 1131 | } |
| 1132 | |
| 1133 | boost::optional<DaylightingDeviceShelf> SubSurface_Impl::addDaylightingDeviceShelf() const { |
| 1134 | boost::optional<DaylightingDeviceShelf> result = this->daylightingDeviceShelf(); |
| 1135 | if (result) { |
| 1136 | return result; |
| 1137 | } |
| 1138 | |
| 1139 | if (allowDaylightingDeviceShelf()) { |
| 1140 | try { |
| 1141 | result = DaylightingDeviceShelf(getObject<SubSurface>()); |
| 1142 | } catch (const std::exception&) { |
| 1143 | } |
| 1144 | } |
| 1145 | |
| 1146 | return result; |
| 1147 | } |
| 1148 | |
| 1149 | bool SubSurface_Impl::allowDaylightingDeviceTubularDome() const { |
| 1150 | bool result = false; |