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

Method dates

src/model/ScheduleYear.cpp:76–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74 }
75
76 std::vector<openstudio::Date> ScheduleYear_Impl::dates() const {
77 std::vector<openstudio::Date> result;
78
79 YearDescription yd = this->model().getUniqueModelObject<YearDescription>();
80
81 for (const auto& group : this->extensibleGroups()) {
82 OptionalUnsigned month = group.getUnsigned(0, true);
83 OptionalUnsigned day = group.getUnsigned(1, true);
84
85 if (month && day) {
86 result.push_back(yd.makeDate(*month, *day));
87 } else {
88 LOG(Error, "Could not read date " << group.groupIndex() << " in " << briefDescription() << ".");
89 }
90 }
91
92 return result;
93 }
94
95 std::vector<ScheduleWeek> ScheduleYear_Impl::scheduleWeeks() const {
96 std::vector<ScheduleWeek> result;

Callers 7

getScheduleWeekMethod · 0.95
addScheduleWeekMethod · 0.95
deepScheduleYearCloneFunction · 0.80
TEST_FFunction · 0.80
translateScheduleYearMethod · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80

Calls 7

extensibleGroupsMethod · 0.80
groupIndexMethod · 0.80
modelMethod · 0.45
getUnsignedMethod · 0.45
push_backMethod · 0.45
makeDateMethod · 0.45

Tested by 3

TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64