easterMonday.hpp
Go to the documentation of this file.
1 #ifndef JULIAN_EASTERMONDAY_HPP
2 #define JULIAN_EASTERMONDAY_HPP
3 
6 
7 namespace julian {
8 
21  class EasterMonday: public Holiday {
22  public:
23  virtual bool operator()(Date) const;
24  virtual EasterMonday* clone() const;
25  virtual std::string info() const;
26  virtual ~EasterMonday(){};
27  friend class boost::serialization::access;
28  private:
29 
32  template<class Archive>
33  void serialize(Archive & , const unsigned int){
34  boost::serialization::base_object<Holiday>(*this);
35  }
36  };
37 } // namespace julian
38 
39 #endif
File contains function EasterForAGivenYear.
Definition: cadHoliday.cpp:3
Class is an abstract class expressing the concept of holiday calendar for different currencies and st...
Definition: holiday.hpp:22
void serialize(Archive &, const unsigned int)
interface used by Boost serialization library
Definition: easterMonday.hpp:33
Easter Monday.
Definition: easterMonday.hpp:21
virtual std::string info() const
Informations about class.
Definition: easterMonday.cpp:28
virtual EasterMonday * clone() const
Virtual copy constructor.
Definition: easterMonday.cpp:20
Class implements a date object.
Definition: date.hpp:27
File contains definition of Holiday class.
virtual bool operator()(Date) const
Checks if date is an Easter Monday.
Definition: easterMonday.cpp:10