| 1194 | } |
| 1195 | |
| 1196 | boost::optional<DaylightingDeviceLightWell> SubSurface_Impl::daylightingDeviceLightWell() const { |
| 1197 | boost::optional<DaylightingDeviceLightWell> result; |
| 1198 | |
| 1199 | std::vector<DaylightingDeviceLightWell> lightwells = |
| 1200 | getObject<ModelObject>().getModelObjectSources<DaylightingDeviceLightWell>(DaylightingDeviceLightWell::iddObjectType()); |
| 1201 | if (lightwells.size() == 1) { |
| 1202 | result = lightwells[0]; |
| 1203 | } else if (lightwells.size() > 1) { |
| 1204 | result = lightwells[0]; |
| 1205 | } |
| 1206 | return result; |
| 1207 | } |
| 1208 | |
| 1209 | boost::optional<DaylightingDeviceLightWell> SubSurface_Impl::addDaylightingDeviceLightWell() const { |
| 1210 | boost::optional<DaylightingDeviceLightWell> result = this->daylightingDeviceLightWell(); |