mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-08-03 14:42:25 -04:00
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7593 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
46 lines
1.3 KiB
C++
46 lines
1.3 KiB
C++
#ifndef YearMonthDayBase_HPP__
|
|
#define YearMonthDayBase_HPP__
|
|
|
|
/* Copyright (c) 2002,2003 CrystalClear Software, Inc.
|
|
* Use, modification and distribution is subject to the
|
|
* Boost Software License, Version 1.0. (See accompanying
|
|
* file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
|
|
* Author: Jeff Garland
|
|
* $Date$
|
|
*/
|
|
|
|
namespace boost {
|
|
namespace date_time {
|
|
|
|
//! Allow rapid creation of ymd triples of different types
|
|
template<typename YearType, typename MonthType, typename DayType>
|
|
struct year_month_day_base {
|
|
year_month_day_base(YearType year,
|
|
MonthType month,
|
|
DayType day);
|
|
YearType year;
|
|
MonthType month;
|
|
DayType day;
|
|
typedef YearType year_type;
|
|
typedef MonthType month_type;
|
|
typedef DayType day_type;
|
|
};
|
|
|
|
|
|
//! A basic constructor
|
|
template<typename YearType, typename MonthType, typename DayType>
|
|
inline
|
|
year_month_day_base<YearType,MonthType,DayType>::year_month_day_base(YearType y,
|
|
MonthType m,
|
|
DayType d) :
|
|
year(y),
|
|
month(m),
|
|
day(d)
|
|
{}
|
|
|
|
} }//namespace date_time
|
|
|
|
|
|
#endif
|
|
|