Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-24 09:43:52

0001 #ifndef GREGORIAN_GREGORIAN_CALENDAR_HPP__
0002 #define GREGORIAN_GREGORIAN_CALENDAR_HPP__
0003 
0004 /* Copyright (c) 2002,2003 CrystalClear Software, Inc.
0005  * Use, modification and distribution is subject to the
0006  * Boost Software License, Version 1.0. (See accompanying
0007  * file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
0008  * Author: Jeff Garland
0009  * $Date$
0010  */
0011 
0012 #include <boost/cstdint.hpp>
0013 #include <boost/date_time/compiler_config.hpp>
0014 #include <boost/date_time/gregorian/greg_weekday.hpp>
0015 #include <boost/date_time/gregorian/greg_day_of_year.hpp>
0016 #include <boost/date_time/gregorian_calendar.hpp>
0017 #include <boost/date_time/gregorian/greg_ymd.hpp>
0018 #include <boost/date_time/int_adapter.hpp>
0019 
0020 namespace boost {
0021 namespace gregorian {
0022 
0023   //!An internal date representation that includes infinities, not a date
0024   typedef date_time::int_adapter<uint32_t> fancy_date_rep;
0025 
0026   //! Gregorian calendar for this implementation, hard work in the base
0027   class BOOST_SYMBOL_VISIBLE gregorian_calendar :
0028     public date_time::gregorian_calendar_base<greg_year_month_day, fancy_date_rep::int_type> {
0029   public:
0030     //! Type to hold a weekday (eg: Sunday, Monday,...)
0031     typedef greg_weekday         day_of_week_type;
0032     //! Counter type from 1 to 366 for gregorian dates.
0033     typedef greg_day_of_year_rep day_of_year_type;
0034     //! Internal date representation that handles infinity, not a date
0035     typedef fancy_date_rep       date_rep_type;
0036     //! Date rep implements the traits stuff as well
0037     typedef fancy_date_rep       date_traits_type;
0038 
0039 
0040   private:
0041   };
0042 
0043 } } //namespace gregorian
0044 
0045 
0046 
0047 
0048 #endif
0049