1 /* 2 * Copyright Andrey Semashev 2007 - 2015. 3 * Distributed under the Boost Software License, Version 1.0. 4 * (See accompanying file LICENSE_1_0.txt or copy at 5 * http://www.boost.org/LICENSE_1_0.txt) 6 */ 7 /*! 8 * \file from_stream.hpp 9 * \author Andrey Semashev 10 * \date 22.03.2008 11 * 12 * The header contains definition of facilities that allows to initialize the library from a 13 * settings file. 14 */ 15 16 #ifndef BOOST_LOG_UTILITY_SETUP_FROM_STREAM_HPP_INCLUDED_ 17 #define BOOST_LOG_UTILITY_SETUP_FROM_STREAM_HPP_INCLUDED_ 18 19 #include <iosfwd> 20 #include <boost/log/detail/setup_config.hpp> 21 #include <boost/log/detail/header.hpp> 22 23 #ifdef BOOST_HAS_PRAGMA_ONCE 24 #pragma once 25 #endif 26 27 namespace boost { 28 29 BOOST_LOG_OPEN_NAMESPACE 30 31 /*! 32 * The function initializes the logging library from a stream containing logging settings 33 * 34 * \param strm Stream, that provides library settings 35 * 36 * \b Throws: An <tt>std::exception</tt>-based exception if the read data cannot be interpreted as the library settings 37 */ 38 template< typename CharT > 39 BOOST_LOG_SETUP_API void init_from_stream(std::basic_istream< CharT >& strm); 40 41 BOOST_LOG_CLOSE_NAMESPACE // namespace log 42 43 } // namespace boost 44 45 #include <boost/log/detail/footer.hpp> 46 47 #endif // BOOST_LOG_UTILITY_SETUP_FROM_STREAM_HPP_INCLUDED_ 48