Fixed date holiday. More...

#include <fixedHoliday.hpp>

Inheritance diagram for julian::FixedHoliday:
julian::Holiday

Public Member Functions

 FixedHoliday ()
 Default constructor. More...
 
 FixedHoliday (int month, int day)
 Constructor. More...
 
virtual bool operator() (Date) const
 Checks if a date is fixed holiday. More...
 
virtual FixedHolidayclone () const
 Virtual copy constructor. More...
 
virtual std::string info () const
 Informations about class. More...
 
- Public Member Functions inherited from julian::Holiday
 Holiday ()
 Constructor. More...
 
virtual ~Holiday ()
 deconstructor More...
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int)
 interface used by Boost serialization library More...
 

Private Attributes

int month_
 month of fixed holiday More...
 
int day_
 day of fixed holiday More...
 

Friends

class boost::serialization::access
 

Detailed Description

Fixed date holiday.

Fixed date holiday may represent a holiday that occurs every year on the same day and month.

Constructor & Destructor Documentation

julian::FixedHoliday::FixedHoliday ( )
inline

Default constructor.

julian::FixedHoliday::FixedHoliday ( int  month,
int  day 
)
inline

Constructor.

Member Function Documentation

FixedHoliday * julian::FixedHoliday::clone ( ) const
virtual

Virtual copy constructor.

Method is an implementation of virtual copy constructor.

Implements julian::Holiday.

std::string julian::FixedHoliday::info ( ) const
virtual

Informations about class.

Method returns string that containing information about class.

Implements julian::Holiday.

bool julian::FixedHoliday::operator() ( Date  date) const
virtual

Checks if a date is fixed holiday.

Method returns true if a date is fixed date holiday and false otherwise.

Implements julian::Holiday.

template<class Archive >
void julian::FixedHoliday::serialize ( Archive &  ar,
const unsigned  int 
)
inlineprivate

interface used by Boost serialization library

Member Data Documentation

int julian::FixedHoliday::day_
private

day of fixed holiday

Integer represents the day on which fixed holiday occurs.

int julian::FixedHoliday::month_
private

month of fixed holiday

Integer represents the month in which fixed holiday occurs.


The documentation for this class was generated from the following files:
  • C:/Unix/home/OEM/jULIAN/src/dates/calendars/fixedHoliday.hpp
  • C:/Unix/home/OEM/jULIAN/src/dates/calendars/fixedHoliday.cpp