1 #ifndef LOCAL_TIME_LOCAL_TIME_TYPES_HPP__ 2 #define LOCAL_TIME_LOCAL_TIME_TYPES_HPP__ 3 4 /* Copyright (c) 2003-2004 CrystalClear Software, Inc. 5 * Subject to the Boost Software License, Version 1.0. 6 * (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) 7 * Author: Jeff Garland, Bart Garst 8 * $Date$ 9 */ 10 11 #include "boost/date_time/local_time/local_date_time.hpp" 12 #include "boost/date_time/period.hpp" 13 #include "boost/date_time/time_iterator.hpp" 14 #include "boost/date_time/compiler_config.hpp" 15 #if defined(BOOST_DATE_TIME_OPTIONAL_GREGORIAN_TYPES) 16 #include "boost/date_time/local_time/date_duration_operators.hpp" 17 #endif //BOOST_DATE_TIME_OPTIONAL_GREGORIAN_TYPES 18 #include "boost/date_time/local_time/custom_time_zone.hpp" 19 20 namespace boost { 21 namespace local_time { 22 23 typedef boost::date_time::period<local_date_time, 24 boost::posix_time::time_duration> local_time_period; 25 26 typedef date_time::time_itr<local_date_time> local_time_iterator; 27 28 typedef date_time::second_clock<local_date_time> local_sec_clock; 29 typedef date_time::microsec_clock<local_date_time> local_microsec_clock; 30 31 typedef date_time::time_zone_base<posix_time::ptime, char> time_zone; 32 typedef date_time::time_zone_base<posix_time::ptime, wchar_t> wtime_zone; 33 34 //! Shared Pointer for custom_time_zone and posix_time_zone objects 35 typedef boost::shared_ptr<time_zone> time_zone_ptr; 36 typedef boost::shared_ptr<wtime_zone> wtime_zone_ptr; 37 38 typedef date_time::time_zone_names_base<char> time_zone_names; 39 typedef date_time::time_zone_names_base<wchar_t> wtime_zone_names; 40 41 //bring special enum values into the namespace 42 using date_time::special_values; 43 using date_time::not_special; 44 using date_time::neg_infin; 45 using date_time::pos_infin; 46 using date_time::not_a_date_time; 47 using date_time::max_date_time; 48 using date_time::min_date_time; 49 50 }} // namespaces 51 52 #endif // LOCAL_TIME_LOCAL_TIME_TYPES_HPP__ 53