annotate DEPENDENCIES/generic/include/boost/date_time/gregorian/greg_calendar.hpp @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents c530137014c0
children
rev   line source
Chris@16 1 #ifndef GREGORIAN_GREGORIAN_CALENDAR_HPP__
Chris@16 2 #define GREGORIAN_GREGORIAN_CALENDAR_HPP__
Chris@16 3
Chris@16 4 /* Copyright (c) 2002,2003 CrystalClear Software, Inc.
Chris@16 5 * Use, modification and distribution is subject to the
Chris@16 6 * Boost Software License, Version 1.0. (See accompanying
Chris@16 7 * file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
Chris@16 8 * Author: Jeff Garland
Chris@101 9 * $Date$
Chris@16 10 */
Chris@16 11
Chris@16 12 #include <boost/cstdint.hpp>
Chris@16 13 #include <boost/date_time/gregorian/greg_weekday.hpp>
Chris@16 14 #include <boost/date_time/gregorian/greg_day_of_year.hpp>
Chris@16 15 #include <boost/date_time/gregorian_calendar.hpp>
Chris@16 16 #include <boost/date_time/gregorian/greg_ymd.hpp>
Chris@16 17 #include <boost/date_time/int_adapter.hpp>
Chris@16 18
Chris@16 19 namespace boost {
Chris@16 20 namespace gregorian {
Chris@16 21
Chris@16 22 //!An internal date representation that includes infinities, not a date
Chris@16 23 typedef date_time::int_adapter<uint32_t> fancy_date_rep;
Chris@16 24
Chris@16 25 //! Gregorian calendar for this implementation, hard work in the base
Chris@16 26 class gregorian_calendar :
Chris@16 27 public date_time::gregorian_calendar_base<greg_year_month_day, fancy_date_rep::int_type> {
Chris@16 28 public:
Chris@16 29 //! Type to hold a weekday (eg: Sunday, Monday,...)
Chris@16 30 typedef greg_weekday day_of_week_type;
Chris@16 31 //! Counter type from 1 to 366 for gregorian dates.
Chris@16 32 typedef greg_day_of_year_rep day_of_year_type;
Chris@16 33 //! Internal date representation that handles infinity, not a date
Chris@16 34 typedef fancy_date_rep date_rep_type;
Chris@16 35 //! Date rep implements the traits stuff as well
Chris@16 36 typedef fancy_date_rep date_traits_type;
Chris@16 37
Chris@16 38
Chris@16 39 private:
Chris@16 40 };
Chris@16 41
Chris@16 42 } } //namespace gregorian
Chris@16 43
Chris@16 44
Chris@16 45
Chris@16 46
Chris@16 47 #endif
Chris@16 48