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)
8 * \file spirit_encoding.cpp
9 * \author Andrey Semashev
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.
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>
24 BOOST_LOG_OPEN_NAMESPACE
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);
33 #define BOOST_LOG_DEFINE_CHARSET_PARSERS(charset)\
34 BOOST_PP_SEQ_FOR_EACH(BOOST_LOG_DEFINE_CHARSET_PARSER, charset, BOOST_LOG_CHARSET_PARSERS)
36 BOOST_LOG_DEFINE_CHARSET_PARSERS(standard
)
37 BOOST_LOG_DEFINE_CHARSET_PARSERS(standard_wide
)
39 #undef BOOST_LOG_DEFINE_CHARSET_PARSERS
40 #undef BOOST_LOG_DEFINE_CHARSET_PARSER
44 BOOST_LOG_CLOSE_NAMESPACE
// namespace log
48 #include <boost/log/detail/footer.hpp>