1 // (C) Copyright Howard Hinnant 2 // (C) Copyright 2011 Vicente J. Botet Escriba 3 // Use, modification and distribution are subject to the Boost Software License, 4 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at 5 // http://www.boost.org/LICENSE_1_0.txt). 6 // 7 // This code was adapted by Vicente from Howard Hinnant's experimental work 8 // on chrono i/o to Boost 9 10 #ifndef BOOST_CHRONO_IO_DURATION_STYLE_HPP 11 #define BOOST_CHRONO_IO_DURATION_STYLE_HPP 12 13 #include <boost/detail/scoped_enum_emulation.hpp> 14 15 namespace boost 16 { 17 namespace chrono 18 { 19 /** 20 * Scoped enumeration emulation stating whether the duration I/O style is long or short. 21 * prefix means duration::rep with whatever stream/locale settings are set for it followed by a long name representing the unit 22 * symbol means duration::rep with whatever stream/locale settings are set for it followed by a SI unit abbreviation 23 */ BOOST_SCOPED_ENUM_DECLARE_BEGIN(duration_style)24 BOOST_SCOPED_ENUM_DECLARE_BEGIN(duration_style) 25 { 26 prefix, symbol 27 } 28 BOOST_SCOPED_ENUM_DECLARE_END(duration_style) 29 30 31 } // chrono 32 33 } 34 35 #endif // header 36