Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Austria::SettlementImpl Class Reference
+ Inheritance diagram for Austria::SettlementImpl:
+ Collaboration diagram for Austria::SettlementImpl:

Public Member Functions

std::string name () const override
 
bool isBusinessDay (const Date &) const override
 

Detailed Description

Definition at line 33 of file austria.hpp.

Member Function Documentation

◆ name()

std::string name ( ) const
override

Definition at line 35 of file austria.hpp.

35{ return "Austrian settlement"; }

◆ isBusinessDay()

bool isBusinessDay ( const Date &  date) const
override

Definition at line 31 of file austria.cpp.

31 {
32 Weekday w = date.weekday();
33 Day d = date.dayOfMonth(), dd = date.dayOfYear();
34 Month m = date.month();
35 Year y = date.year();
36 Day em = easterMonday(y);
37 if (isWeekend(w)
38 // New Years Day
39 || (d == 1 && m == January)
40 // Epiphany
41 || (d == 6 && m == January)
42 // Easter Monday
43 || (dd == em)
44 // Labour Day
45 || (d == 1 && m == May)
46 // Ascension Thursday
47 || (dd == em + 38)
48 // Whit Monday
49 || (dd == em + 49)
50 // Corpus Christi
51 || (dd == em + 59)
52 // Assumption Day
53 || (d == 15 && m == August)
54 // National Day
55 || (d == 26 && m == October)
56 // All Saints
57 || (d == 1 && m == November)
58 // Conception Day
59 || (d == 8 && m == December)
60 // Christmas
61 || (d == 25 && m == December)
62 // St Stephens Day
63 || (d == 26 && m == December))
64 return false;
65 return true;
66}