dxFeed Graal CXX API
|
A filter for days used by various search methods. More...
#include <DayFilter.hpp>
Static Public Attributes | |
static const DayFilter | ANY |
Accepts any day - useful for pure calendar navigation. | |
static const DayFilter | TRADING |
Accepts trading days only - those with (Day::isTrading() == true) . | |
static const DayFilter | NON_TRADING |
Accepts non-trading days only - those with (Day::isTrading() == false) . | |
static const DayFilter | HOLIDAY |
Accepts holidays only - those with (Day::isHoliday() == true) . | |
static const DayFilter | SHORT_DAY |
Accepts short days only - those with (Day::isShortDay() == true) . | |
static const DayFilter | MONDAY |
Accepts Mondays only - those with (Day::getDayOfWeek() == 1) . | |
static const DayFilter | TUESDAY |
Accepts Tuesdays only - those with (Day::getDayOfWeek() == 2) . | |
static const DayFilter | WEDNESDAY |
Accepts Wednesdays only - those with (Day::getDayOfWeek() == 3) . | |
static const DayFilter | THURSDAY |
Accepts Thursdays only - those with (Day::getDayOfWeek() == 4) . | |
static const DayFilter | FRIDAY |
Accepts Fridays only - those with (Day::getDayOfWeek() == 5) . | |
static const DayFilter | SATURDAY |
Accepts Saturdays only - those with (Day::getDayOfWeek() == 6) . | |
static const DayFilter | SUNDAY |
Accepts Sundays only - those with (Day::getDayOfWeek() == 7) . | |
static const DayFilter | WEEK_DAY |
Accepts week-days only - those with (Day::getDayOfWeek() <= 5) . | |
static const DayFilter | WEEK_END |
Accepts weekends only - those with (Day::getDayOfWeek() >= 6) . | |
Friends | |
struct | Day |
A filter for days used by various search methods.
This class provides predefined filters for certain Day attributes, although users can create their own filters to suit their needs.
Please note that days can be either trading or non-trading, and this distinction can be either based on rules (e.g. weekends) or dictated by special occasions (e.g. holidays). Different filters treat this distinction differently - some accept only trading days, some only non-trading, and some ignore type of day altogether.