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

Method allowWindowPropertyFrameAndDivider

src/model/SubSurface.cpp:502–512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

500 }
501
502 bool SubSurface_Impl::allowWindowPropertyFrameAndDivider() const {
503 bool result = false;
504
505 std::string subSurfaceType = this->subSurfaceType();
506 if (istringEqual("FixedWindow", subSurfaceType) || istringEqual("OperableWindow", subSurfaceType) || istringEqual("Skylight", subSurfaceType)
507 || istringEqual("GlassDoor", subSurfaceType)) {
508 result = true;
509 }
510
511 return result;
512 }
513
514 boost::optional<WindowPropertyFrameAndDivider> SubSurface_Impl::windowPropertyFrameAndDivider() const {
515 return getObject<SubSurface>().getModelObjectTarget<WindowPropertyFrameAndDivider>(OS_SubSurfaceFields::FrameandDividerName);

Callers 3

TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80

Calls 2

subSurfaceTypeMethod · 0.95
istringEqualFunction · 0.85

Tested by 3

TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64