settlementFromSpot.hpp
Go to the documentation of this file.
1 #ifndef JULIAN_SETTLEMENTFROMSPOT_HPP
2 #define JULIAN_SETTLEMENTFROMSPOT_HPP
3 
6 #include <dates/date.hpp>
7 #include <dates/tenor.hpp>
8 
9 namespace julian {
10 
27  public:
33 
34 
35  virtual Date calculateSettlementDate(Date,Tenor,const Calendar&) const;
36  virtual Date calculateExpiryDate(Date,Tenor,const Calendar&) const;
41  virtual SettlementFromSpot* clone() const;
42 
47  virtual std::string info() const;
52  virtual ~SettlementFromSpot(){};
53  friend class boost::serialization::access;
54  private:
55 
58  template<class Archive>
59  void serialize(Archive & , const unsigned int){
60  boost::serialization::base_object<SettlementDateConvention>(*this);
61  }
62  };
63 }
64 #endif
Interface for classes implementing settlement date conventions.
Definition: settlementDateConvention.hpp:25
Definition: cadHoliday.cpp:3
virtual Date calculateExpiryDate(Date, Tenor, const Calendar &) const
Calculates expiry date.
Definition: settlementFromSpot.cpp:13
Class implements calendar object.
Definition: calendar.hpp:30
void serialize(Archive &, const unsigned int)
interface used by Boost serialization library
Definition: settlementFromSpot.hpp:59
virtual ~SettlementFromSpot()
destructor
Definition: settlementFromSpot.hpp:52
File contains definition of date class.
virtual Date calculateSettlementDate(Date, Tenor, const Calendar &) const
Calculates settlement date.
Definition: settlementFromSpot.cpp:5
virtual std::string info() const
Info about class.
Definition: settlementFromSpot.cpp:28
File contains the definition of calendar class.
Class calculating settlement date from expiry date.
Definition: settlementFromSpot.hpp:26
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 SettlementFromSpot * clone() const
Virtual copy constructor.
Definition: settlementFromSpot.cpp:20
SettlementFromSpot()
Constructor.
Definition: settlementFromSpot.hpp:32