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

Method getScheduleTypeKeys

src/model/DesignSpecificationOutdoorAir.cpp:47–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 }
46
47 std::vector<ScheduleTypeKey> DesignSpecificationOutdoorAir_Impl::getScheduleTypeKeys(const Schedule& schedule) const {
48 std::vector<ScheduleTypeKey> result;
49 UnsignedVector fieldIndices = getSourceIndices(schedule.handle());
50 UnsignedVector::const_iterator b(fieldIndices.begin());
51 UnsignedVector::const_iterator e(fieldIndices.end());
52 if (std::find(b, e, OS_DesignSpecification_OutdoorAirFields::OutdoorAirFlowRateFractionScheduleName) != e) {
53 result.push_back(ScheduleTypeKey("DesignSpecificationOutdoorAir", "Outdoor Air Flow Rate"));
54 }
55 return result;
56 }
57
58 std::string DesignSpecificationOutdoorAir_Impl::outdoorAirMethod() const {
59 boost::optional<std::string> value = getString(OS_DesignSpecification_OutdoorAirFields::OutdoorAirMethod, true);

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