| 252 | } |
| 253 | |
| 254 | bool ShadingControl_Impl::setSchedule(const Schedule& schedule) { |
| 255 | bool result = false; |
| 256 | std::string shadingControlType = this->shadingControlType(); |
| 257 | if (ShadingControl_Impl::isControlTypeValueAllowingSchedule(shadingControlType)) { |
| 258 | result = setPointer(OS_ShadingControlFields::ScheduleName, schedule.handle()); |
| 259 | if (result) { |
| 260 | bool test = setString(OS_ShadingControlFields::ShadingControlIsScheduled, "Yes"); |
| 261 | OS_ASSERT(test); |
| 262 | } |
| 263 | } else { |
| 264 | LOG(Warn, briefDescription() << " has a Shading Control Type '" << shadingControlType << "' which does not allow a Schedule"); |
| 265 | } |
| 266 | return result; |
| 267 | } |
| 268 | |
| 269 | void ShadingControl_Impl::resetSchedule() { |
| 270 | std::string shadingControlType = this->shadingControlType(); |
nothing calls this directly
no test coverage detected