| 253 | } |
| 254 | |
| 255 | boost::optional<Schedule> People_Impl::numberofPeopleSchedule() const { |
| 256 | boost::optional<Schedule> result = getObject<ModelObject>().getModelObjectTarget<Schedule>(OS_PeopleFields::NumberofPeopleScheduleName); |
| 257 | if (!result) { |
| 258 | // search upwards |
| 259 | OptionalSpace space = this->space(); |
| 260 | OptionalSpaceType spaceType = this->spaceType(); |
| 261 | if (space) { |
| 262 | result = space->getDefaultSchedule(DefaultScheduleType::NumberofPeopleSchedule); |
| 263 | } else if (spaceType) { |
| 264 | result = spaceType->getDefaultSchedule(DefaultScheduleType::NumberofPeopleSchedule); |
| 265 | } |
| 266 | } |
| 267 | return result; |
| 268 | } |
| 269 | |
| 270 | bool People_Impl::isNumberofPeopleScheduleDefaulted() const { |
| 271 | return isEmpty(OS_PeopleFields::NumberofPeopleScheduleName); |