Chris@102: // Boost.Units - A C++ library for zero-overhead dimensional analysis and Chris@102: // unit/quantity manipulation and conversion Chris@102: // Chris@102: // Copyright (C) 2014 Erik Erlandson Chris@102: // Chris@102: // Distributed under the Boost Software License, Version 1.0. (See Chris@102: // accompanying file LICENSE_1_0.txt or copy at Chris@102: // http://www.boost.org/LICENSE_1_0.txt) Chris@102: Chris@102: #ifndef BOOST_UNITS_BASE_UNITS_INFORMATION_SHANNON_HPP_INCLUDED Chris@102: #define BOOST_UNITS_BASE_UNITS_INFORMATION_SHANNON_HPP_INCLUDED Chris@102: Chris@102: #include Chris@102: #include Chris@102: #include Chris@102: #include Chris@102: #include Chris@102: Chris@102: namespace boost { Chris@102: namespace units { Chris@102: namespace information { Chris@102: Chris@102: typedef scaled_base_unit > > shannon_base_unit; Chris@102: Chris@102: } // namespace information Chris@102: Chris@102: template<> Chris@102: struct base_unit_info { Chris@102: static const char* name() { return("shannon"); } Chris@102: static const char* symbol() { return("Sh"); } Chris@102: }; Chris@102: Chris@102: } // namespace units Chris@102: } // namespace boost Chris@102: Chris@102: #endif // BOOST_UNITS_BASE_UNITS_INFORMATION_SHANNON_HPP_INCLUDED