holiday.hpp
Go to the documentation of this file.
1 #ifndef JULIAN_HOLIDAY_HPP
2 #define JULIAN_HOLIDAY_HPP
3 
4 #include <dates/date.hpp>
5 #include <utils/smartPointer.hpp>
6 #include <utils/utils.hpp>
7 
8 namespace julian {
9 
22  class Holiday {
23  public:
28  Holiday(){};
29 
34  virtual bool operator()(Date) const = 0;
35 
40  virtual Holiday* clone() const = 0;
41 
46  virtual std::string info() const =0;
51  virtual ~Holiday(){};
52  friend class boost::serialization::access;
53  private:
54 
57  template<class Archive>
58  void serialize(Archive & , const unsigned int){
59  }
60  };
61 }
62 #endif
virtual bool operator()(Date) const =0
Check holiday.
File contains template of deep-coping smart pointer.
Definition: cadHoliday.cpp:3
virtual Holiday * clone() const =0
Virtual copy constructor.
File contains definition of date class.
File contains small programming tools.
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: holiday.hpp:58
virtual ~Holiday()
deconstructor
Definition: holiday.hpp:51
Holiday()
Constructor.
Definition: holiday.hpp:28
Class implements a date object.
Definition: date.hpp:27
virtual std::string info() const =0
Info about class.