local_time_types.hpp 1.9 KB

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