21 #ifndef __ANTARES_TOOLBOX_COMPONENTS_DATAGRID_FILTER_ALL_WEEKDAY_H__
22 #define __ANTARES_TOOLBOX_COMPONENTS_DATAGRID_FILTER_ALL_WEEKDAY_H__
24 #include "../filter.h"
25 #include <antares/date/date.h>
26 #include <antares/study/study.h>
27 #include "application/study.h"
29 namespace Antares::Toolbox::Filter
34 static const wxChar* Name()
36 return wxT(
"weekday");
39 static const wxChar* Caption()
41 return wxT(
"WeekDay");
44 static Date::Precision Precision()
60 virtual Date::Precision precision()
const
62 return Weekday::Precision();
65 virtual bool checkOnRowsLabels()
const
70 virtual const wxChar*
name()
const
72 return Weekday::Name();
77 return Weekday::Caption();
80 virtual bool rowIsValid(
int row)
const
83 auto studyptr = GetCurrentStudy();
88 auto& study = *studyptr;
89 auto& calendar = study.calendar;
95 if (row < study.calendar.maxHoursInYear)
97 uint w = calendar.hours[row].weekday;
104 if (row < study.calendar.maxDaysInYear)
106 uint w = calendar.days[row].weekday;