Chris@16: #ifndef GREGORIAN_GREGORIAN_CALENDAR_HPP__ Chris@16: #define GREGORIAN_GREGORIAN_CALENDAR_HPP__ Chris@16: Chris@16: /* Copyright (c) 2002,2003 CrystalClear Software, Inc. Chris@16: * Use, modification and distribution is subject to the Chris@16: * Boost Software License, Version 1.0. (See accompanying Chris@16: * file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) Chris@16: * Author: Jeff Garland Chris@101: * $Date$ Chris@16: */ Chris@16: Chris@16: #include Chris@16: #include Chris@16: #include Chris@16: #include Chris@16: #include Chris@16: #include Chris@16: Chris@16: namespace boost { Chris@16: namespace gregorian { Chris@16: Chris@16: //!An internal date representation that includes infinities, not a date Chris@16: typedef date_time::int_adapter fancy_date_rep; Chris@16: Chris@16: //! Gregorian calendar for this implementation, hard work in the base Chris@16: class gregorian_calendar : Chris@16: public date_time::gregorian_calendar_base { Chris@16: public: Chris@16: //! Type to hold a weekday (eg: Sunday, Monday,...) Chris@16: typedef greg_weekday day_of_week_type; Chris@16: //! Counter type from 1 to 366 for gregorian dates. Chris@16: typedef greg_day_of_year_rep day_of_year_type; Chris@16: //! Internal date representation that handles infinity, not a date Chris@16: typedef fancy_date_rep date_rep_type; Chris@16: //! Date rep implements the traits stuff as well Chris@16: typedef fancy_date_rep date_traits_type; Chris@16: Chris@16: Chris@16: private: Chris@16: }; Chris@16: Chris@16: } } //namespace gregorian Chris@16: Chris@16: Chris@16: Chris@16: Chris@16: #endif Chris@16: