| 161 | } |
| 162 | |
| 163 | bool ZoneMixing_Impl::setSourceSpace(const Space& space) { |
| 164 | auto receiving = this->zoneOrSpace(); |
| 165 | // source zone cannot be the same as this zone |
| 166 | if (space.handle() == receiving.handle()) { |
| 167 | LOG(Warn, "For " << briefDescription() << ", Source Space cannot be the same as the Receiving Space '" << space.nameString() << "'."); |
| 168 | return false; |
| 169 | } |
| 170 | if (receiving.iddObjectType() != IddObjectType::OS_Space) { |
| 171 | LOG(Warn, "For " << briefDescription() << ", Receiving is a Zone, so you cannot set Source as a Space."); |
| 172 | return false; |
| 173 | } |
| 174 | |
| 175 | return setPointer(OS_ZoneMixingFields::SourceZoneorSpaceName, space.handle()); |
| 176 | } |
| 177 | |
| 178 | void ZoneMixing_Impl::resetSourceZoneOrSpace() { |
| 179 | bool result = setString(OS_ZoneMixingFields::SourceZoneorSpaceName, ""); |