| 94 | } |
| 95 | |
| 96 | boost::optional<ThermalZone> ZoneControlHumidistat_Impl::controlledZone() const { |
| 97 | Handle h = handle(); |
| 98 | auto zones = model().getConcreteModelObjects<model::ThermalZone>(); |
| 99 | for (const auto& zone : zones) { |
| 100 | if (auto humidistat = zone.zoneControlHumidistat()) { |
| 101 | if (humidistat->handle() == h) { |
| 102 | return zone; |
| 103 | } |
| 104 | } |
| 105 | } |
| 106 | return boost::none; |
| 107 | } |
| 108 | |
| 109 | } // namespace detail |
| 110 |