• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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   spirit_encoding.cpp
9  * \author Andrey Semashev
10  * \date   20.07.2012
11  *
12  * \brief  This header is the Boost.Log library implementation, see the library documentation
13  *         at http://www.boost.org/doc/libs/release/libs/log/doc/html/index.html.
14  */
15 
16 #include <boost/log/detail/config.hpp>
17 #include <boost/preprocessor/tuple/elem.hpp>
18 #include <boost/preprocessor/seq/for_each.hpp>
19 #include "spirit_encoding.hpp"
20 #include <boost/log/detail/header.hpp>
21 
22 namespace boost {
23 
24 BOOST_LOG_OPEN_NAMESPACE
25 
26 namespace aux {
27 
28 #define BOOST_LOG_DEFINE_CHARSET_PARSER(r, charset, parser)\
29     BOOST_LOG_API encoding_specific< spirit::char_encoding::charset >::BOOST_PP_TUPLE_ELEM(2, 0, parser) const&\
30         encoding_specific< spirit::char_encoding::charset >::BOOST_PP_TUPLE_ELEM(2, 1, parser) =\
31             spirit::charset::BOOST_PP_TUPLE_ELEM(2, 1, parser);
32 
33 #define BOOST_LOG_DEFINE_CHARSET_PARSERS(charset)\
34     BOOST_PP_SEQ_FOR_EACH(BOOST_LOG_DEFINE_CHARSET_PARSER, charset, BOOST_LOG_CHARSET_PARSERS)
35 
36 BOOST_LOG_DEFINE_CHARSET_PARSERS(standard)
37 BOOST_LOG_DEFINE_CHARSET_PARSERS(standard_wide)
38 
39 #undef BOOST_LOG_DEFINE_CHARSET_PARSERS
40 #undef BOOST_LOG_DEFINE_CHARSET_PARSER
41 
42 } // namespace aux
43 
44 BOOST_LOG_CLOSE_NAMESPACE // namespace log
45 
46 } // namespace boost
47 
48 #include <boost/log/detail/footer.hpp>
49