Chris@16: // (C) Copyright Howard Hinnant Chris@16: // (C) Copyright 2011 Vicente J. Botet Escriba Chris@16: // Use, modification and distribution are subject to the Boost Software License, Chris@16: // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at Chris@16: // http://www.boost.org/LICENSE_1_0.txt). Chris@16: // Chris@16: // This code was adapted by Vicente from Howard Hinnant's experimental work Chris@16: // on chrono i/o to Boost Chris@16: Chris@16: #ifndef BOOST_CHRONO_IO_DURATION_STYLE_HPP Chris@16: #define BOOST_CHRONO_IO_DURATION_STYLE_HPP Chris@16: Chris@16: #include Chris@16: Chris@16: namespace boost Chris@16: { Chris@16: namespace chrono Chris@16: { Chris@16: /** Chris@16: * Scoped enumeration emulation stating whether the duration I/O style is long or short. Chris@16: * prefix means duration::rep with whatever stream/locale settings are set for it followed by a long name representing the unit Chris@16: * symbol means duration::rep with whatever stream/locale settings are set for it followed by a SI unit abbreviation Chris@16: */ Chris@16: BOOST_SCOPED_ENUM_DECLARE_BEGIN(duration_style) Chris@16: { Chris@16: prefix, symbol Chris@16: } Chris@16: BOOST_SCOPED_ENUM_DECLARE_END(duration_style) Chris@16: Chris@16: Chris@16: } // chrono Chris@16: Chris@16: } Chris@16: Chris@16: #endif // header