Chris@16
|
1 /*
|
Chris@101
|
2 * Copyright Andrey Semashev 2007 - 2015.
|
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 value_extraction_fwd.hpp
|
Chris@16
|
9 * \author Andrey Semashev
|
Chris@16
|
10 * \date 01.03.2008
|
Chris@16
|
11 *
|
Chris@16
|
12 * The header contains forward declaration of tools for extracting attribute values
|
Chris@16
|
13 * from the view.
|
Chris@16
|
14 */
|
Chris@16
|
15
|
Chris@16
|
16 #ifndef BOOST_LOG_ATTRIBUTES_VALUE_EXTRACTION_FWD_HPP_INCLUDED_
|
Chris@16
|
17 #define BOOST_LOG_ATTRIBUTES_VALUE_EXTRACTION_FWD_HPP_INCLUDED_
|
Chris@16
|
18
|
Chris@16
|
19 #include <boost/log/detail/config.hpp>
|
Chris@16
|
20 #include <boost/log/attributes/fallback_policy_fwd.hpp>
|
Chris@16
|
21
|
Chris@16
|
22 #ifdef BOOST_HAS_PRAGMA_ONCE
|
Chris@16
|
23 #pragma once
|
Chris@16
|
24 #endif
|
Chris@16
|
25
|
Chris@16
|
26 namespace boost {
|
Chris@16
|
27
|
Chris@16
|
28 BOOST_LOG_OPEN_NAMESPACE
|
Chris@16
|
29
|
Chris@16
|
30 namespace result_of {
|
Chris@16
|
31
|
Chris@16
|
32 /*!
|
Chris@16
|
33 * \brief A metafunction that allows to acquire the result of the value extraction
|
Chris@16
|
34 */
|
Chris@16
|
35 template< typename T, typename DefaultT = T, typename TagT = void >
|
Chris@16
|
36 struct extract_or_default;
|
Chris@16
|
37
|
Chris@16
|
38 /*!
|
Chris@16
|
39 * \brief A metafunction that allows to acquire the result of the value extraction
|
Chris@16
|
40 */
|
Chris@16
|
41 template< typename T, typename TagT = void >
|
Chris@16
|
42 struct extract_or_throw;
|
Chris@16
|
43
|
Chris@16
|
44 /*!
|
Chris@16
|
45 * \brief A metafunction that allows to acquire the result of the value extraction
|
Chris@16
|
46 */
|
Chris@16
|
47 template< typename T, typename TagT = void >
|
Chris@16
|
48 struct extract;
|
Chris@16
|
49
|
Chris@16
|
50 } // namespace result_of
|
Chris@16
|
51
|
Chris@16
|
52 /*!
|
Chris@16
|
53 * \brief Generic attribute value extractor
|
Chris@16
|
54 */
|
Chris@16
|
55 template< typename T, typename FallbackPolicyT = fallback_to_none, typename TagT = void >
|
Chris@16
|
56 class value_extractor;
|
Chris@16
|
57
|
Chris@16
|
58 BOOST_LOG_CLOSE_NAMESPACE // namespace log
|
Chris@16
|
59
|
Chris@16
|
60 } // namespace boost
|
Chris@16
|
61
|
Chris@16
|
62 #endif // BOOST_LOG_ATTRIBUTES_VALUE_EXTRACTION_FWD_HPP_INCLUDED_
|