OneYF.hpp
Go to the documentation of this file.
1 #ifndef JULIAN_ONEYF_HPP
2 #define JULIAN_ONEYF_HPP
3 
5 
6 namespace julian {
7 
21  class OneYF: public YearFraction {
22  public:
23  OneYF(){};
24  virtual double operator()(const Date&,const Date&) const;
25  virtual OneYF* clone() const;
26  virtual ~OneYF(){};
27  virtual std::string info() const;
28 
29  friend class boost::serialization::access;
30  private:
31 
34  template<class Archive>
35  void serialize(Archive & , const unsigned int){
36  boost::serialization::base_object<YearFraction>(*this);
37  }
38  };
39 }
40 #endif
File contains interface for year fractions.
This class is an abstract class expressing the concept of calculating year fraction.
Definition: yearFraction.hpp:28
Definition: cadHoliday.cpp:3
void serialize(Archive &, const unsigned int)
interface used by Boost serialization library
Definition: OneYF.hpp:35
virtual OneYF * clone() const
Definition: OneYF.cpp:15
virtual double operator()(const Date &, const Date &) const
Definition: OneYF.cpp:9
Class implements a date object.
Definition: date.hpp:27
virtual std::string info() const
Definition: OneYF.cpp:21
The class encapsulates the 1/1 year fraction convention.
Definition: OneYF.hpp:21