MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / setNameProtected

Method setNameProtected

src/model/SpaceType.cpp:142–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);

Callers 1

TEST_FFunction · 0.80

Calls 4

istringEqualFunction · 0.85
plenumSpaceTypeNameMethod · 0.80
nameStringMethod · 0.80
modelMethod · 0.45

Tested by 1

TEST_FFunction · 0.64