| 140 | } |
| 141 | |
| 142 | boost::optional<std::string> SpaceType_Impl::setNameProtected(const std::string& newName) { |
| 143 | // don't allow user to change name of plenum space type since this is found by name in Model::plenumSpaceType |
| 144 | if (istringEqual(this->model().plenumSpaceTypeName(), this->nameString())) { |
| 145 | return this->nameString(); |
| 146 | } |
| 147 | return ResourceObject_Impl::setName(newName); |
| 148 | } |
| 149 | |
| 150 | boost::optional<DefaultConstructionSet> SpaceType_Impl::defaultConstructionSet() const { |
| 151 | return getObject<ModelObject>().getModelObjectTarget<DefaultConstructionSet>(OS_SpaceTypeFields::DefaultConstructionSetName); |