21 #ifndef __ANTARES_TOOLBOX_COMPONENTS_DATAGRID_FILTER_ALL_HOUR_H__
22 #define __ANTARES_TOOLBOX_COMPONENTS_DATAGRID_FILTER_ALL_HOUR_H__
24 #include "../filter.h"
25 #include <antares/date/date.h>
27 namespace Antares::Toolbox::Filter
32 static const wxChar* Name()
37 static const wxChar* Caption()
39 return wxT(
"Day Hour");
42 static Date::Precision Precision()
58 virtual Date::Precision precision()
const
60 return Hour::Precision();
63 virtual bool checkOnRowsLabels()
const
68 virtual const wxChar*
name()
const
75 return Hour::Caption();
78 virtual bool rowIsValid(
int row)
const
81 auto studyptr = GetCurrentStudy();
82 if (!(!studyptr) && row < studyptr->calendar.maxHoursInYear)
84 return currentOperator->compute((
int)studyptr->calendar.hours[row].dayHour + 1);