settlementDateConvention.hpp
Go to the documentation of this file.
1 #ifndef JULIAN_SETTLEMENTDATECONV_HPP
2 #define JULIAN_SETTLEMENTDATECONV_HPP
3 
6 #include <dates/date.hpp>
7 #include <dates/tenor.hpp>
8 
9 namespace julian {
10 
11  class Calendar;
26  public:
32 
35  virtual Date calculateSettlementDate(Date,Tenor,const Calendar&) const = 0;
36 
39  virtual Date calculateExpiryDate(Date,Tenor,const Calendar&) const = 0;
44  virtual SettlementDateConvention* clone() const = 0;
45 
50  virtual std::string info() const =0;
56 
57 
58  friend class boost::serialization::access;
59  private:
62  template<class Archive>
63  void serialize(Archive & , const unsigned int) {
64  }
65  };
66 } // namespace julian
67 
68 #endif
virtual ~SettlementDateConvention()
destructor
Definition: settlementDateConvention.hpp:55
virtual Date calculateExpiryDate(Date, Tenor, const Calendar &) const =0
Calculates expiry date.
Interface for classes implementing settlement date conventions.
Definition: settlementDateConvention.hpp:25
Definition: cadHoliday.cpp:3
Class implements calendar object.
Definition: calendar.hpp:30
File contains definition of date class.
virtual Date calculateSettlementDate(Date, Tenor, const Calendar &) const =0
Calculates settlement date.
File contains the definition of calendar class.
SettlementDateConvention()
Constructor.
Definition: settlementDateConvention.hpp:31
void serialize(Archive &, const unsigned int)
interface used by Boost serialization library
Definition: settlementDateConvention.hpp:63
Class implements a date object.
Definition: date.hpp:27
File contains definition of tenor class.
File contains interface of settlement convention.
Class implements a tenor object.
Definition: tenor.hpp:23
virtual std::string info() const =0
Info about class.
virtual SettlementDateConvention * clone() const =0
Virtual copy constructor.