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

Method getScheduleTypeKeys

src/model/Lights.cpp:79–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77 }
78
79 std::vector<ScheduleTypeKey> Lights_Impl::getScheduleTypeKeys(const Schedule& schedule) const {
80 std::vector<ScheduleTypeKey> result;
81 UnsignedVector fieldIndices = getSourceIndices(schedule.handle());
82 UnsignedVector::const_iterator b(fieldIndices.begin());
83 UnsignedVector::const_iterator e(fieldIndices.end());
84 if (std::find(b, e, OS_LightsFields::ScheduleName) != e) {
85 result.push_back(ScheduleTypeKey("Lights", "Lighting"));
86 }
87 return result;
88 }
89
90 bool Lights_Impl::hardSize() {
91 boost::optional<Space> space = this->space();

Callers

nothing calls this directly

Calls 5

beginMethod · 0.80
ScheduleTypeKeyClass · 0.70
handleMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected