| 332 | } |
| 333 | |
| 334 | bool ShadingControl_Impl::setSlatAngleSchedule(const Schedule& slatAngleSchedule) { |
| 335 | bool result = false; |
| 336 | std::string shadingType = this->shadingType(); |
| 337 | if (ShadingControl_Impl::isTypeValueAllowingSlatAngleControl(shadingType)) { |
| 338 | result = setPointer(OS_ShadingControlFields::SlatAngleScheduleName, slatAngleSchedule.handle()); |
| 339 | if (result) { |
| 340 | bool test = setString(OS_ShadingControlFields::TypeofSlatAngleControlforBlinds, "ScheduledSlatAngle"); |
| 341 | OS_ASSERT(test); |
| 342 | } |
| 343 | } else { |
| 344 | LOG(Warn, briefDescription() << " has a Shading Type '" << shadingType << "' which does not allow a Slat Angle Schedule"); |
| 345 | } |
| 346 | return result; |
| 347 | } |
| 348 | |
| 349 | void ShadingControl_Impl::resetSlatAngleSchedule() { |
| 350 | bool result = false; |