Sha256: 9e0c78a508ce20d5da5ddd0b4ec7f7bb13777e24f7efd5736116dbad0eccfeaf

Contents?: true

Size: 1.38 KB

Versions: 28

Compression:

Stored size: 1.38 KB

Contents

#ifndef GREG_DURATION_TYPES_HPP___
#define GREG_DURATION_TYPES_HPP___

/* Copyright (c) 2004 CrystalClear Software, Inc.
 * Subject to 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, Bart Garst
 * $Date$
 */


#include <boost/date_time/compiler_config.hpp>
#include <boost/date_time/gregorian/greg_date.hpp>
#include <boost/date_time/int_adapter.hpp>
#include <boost/date_time/adjust_functors.hpp>
#include <boost/date_time/date_duration_types.hpp>
#include <boost/date_time/gregorian/greg_duration.hpp>

namespace boost {
namespace gregorian {

  //! config struct for additional duration types (ie months_duration<> & years_duration<>)
  struct BOOST_SYMBOL_VISIBLE greg_durations_config {
    typedef date date_type;
    typedef date_time::int_adapter<int> int_rep;
    typedef date_time::month_functor<date_type> month_adjustor_type; 
  };

  typedef date_time::months_duration<greg_durations_config> months;
  typedef date_time::years_duration<greg_durations_config> years;

  class BOOST_SYMBOL_VISIBLE weeks_duration : public date_duration {
  public:
    weeks_duration(duration_rep w) 
      : date_duration(w * 7) {}
    weeks_duration(date_time::special_values sv) 
      : date_duration(sv) {}
  };

  typedef weeks_duration weeks;

}} // namespace boost::gregorian

#endif // GREG_DURATION_TYPES_HPP___

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
passenger-6.0.7 src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/greg_duration_types.hpp
passenger-6.0.6 src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/greg_duration_types.hpp
passenger-6.0.5 src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/greg_duration_types.hpp
passenger-6.0.4 src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/greg_duration_types.hpp
passenger-6.0.3 src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/greg_duration_types.hpp
passenger-6.0.2 src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/greg_duration_types.hpp
passenger-6.0.1 src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/greg_duration_types.hpp
passenger-6.0.0 src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/greg_duration_types.hpp
passenger-5.3.7 src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/greg_duration_types.hpp
passenger-5.3.6 src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/greg_duration_types.hpp
passenger-5.3.5 src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/greg_duration_types.hpp
passenger-5.3.4 src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/greg_duration_types.hpp
passenger-5.3.3 src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/greg_duration_types.hpp
passenger-5.3.2 src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/greg_duration_types.hpp
passenger-5.3.1 src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/greg_duration_types.hpp
passenger-5.3.0 src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/greg_duration_types.hpp
passenger-5.2.3 src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/greg_duration_types.hpp
passenger-5.2.2 src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/greg_duration_types.hpp
passenger-5.2.1 src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/greg_duration_types.hpp
passenger-5.2.0 src/cxx_supportlib/vendor-modified/boost/date_time/gregorian/greg_duration_types.hpp