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