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

Method DaylightingDeviceShelf

src/model/DaylightingDeviceShelf.cpp:129–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127 } // namespace detail
128
129 DaylightingDeviceShelf::DaylightingDeviceShelf(const SubSurface& subSurface)
130 : ModelObject(DaylightingDeviceShelf::iddObjectType(), subSurface.model()) {
131 OS_ASSERT(getImpl<detail::DaylightingDeviceShelf_Impl>());
132
133 bool subSurfaceOk = false;
134 if (subSurface.allowDaylightingDeviceShelf()) {
135 if (!subSurface.daylightingDeviceShelf()) {
136 subSurfaceOk = true;
137 }
138 }
139
140 if (!subSurfaceOk) {
141 this->remove();
142 LOG_AND_THROW("Cannot create DaylightingDeviceShelf for SubSurface '" << subSurface.name().get() << "'");
143 }
144
145 bool test = setPointer(OS_DaylightingDevice_ShelfFields::WindowName, subSurface.handle());
146 OS_ASSERT(test);
147 }
148
149 IddObjectType DaylightingDeviceShelf::iddObjectType() {
150 IddObjectType result(IddObjectType::OS_DaylightingDevice_Shelf);

Callers

nothing calls this directly

Calls 8

iddObjectTypeFunction · 0.70
modelMethod · 0.45
removeMethod · 0.45
getMethod · 0.45
nameMethod · 0.45
handleMethod · 0.45

Tested by

no test coverage detected