Chris@16: /* Chris@101: * Copyright Andrey Semashev 2007 - 2015. Chris@16: * Distributed under the Boost Software License, Version 1.0. Chris@16: * (See accompanying file LICENSE_1_0.txt or copy at Chris@16: * http://www.boost.org/LICENSE_1_0.txt) Chris@16: */ Chris@16: /*! Chris@16: * \file value_extraction_fwd.hpp Chris@16: * \author Andrey Semashev Chris@16: * \date 01.03.2008 Chris@16: * Chris@16: * The header contains forward declaration of tools for extracting attribute values Chris@16: * from the view. Chris@16: */ Chris@16: Chris@16: #ifndef BOOST_LOG_ATTRIBUTES_VALUE_EXTRACTION_FWD_HPP_INCLUDED_ Chris@16: #define BOOST_LOG_ATTRIBUTES_VALUE_EXTRACTION_FWD_HPP_INCLUDED_ Chris@16: Chris@16: #include Chris@16: #include Chris@16: Chris@16: #ifdef BOOST_HAS_PRAGMA_ONCE Chris@16: #pragma once Chris@16: #endif Chris@16: Chris@16: namespace boost { Chris@16: Chris@16: BOOST_LOG_OPEN_NAMESPACE Chris@16: Chris@16: namespace result_of { Chris@16: Chris@16: /*! Chris@16: * \brief A metafunction that allows to acquire the result of the value extraction Chris@16: */ Chris@16: template< typename T, typename DefaultT = T, typename TagT = void > Chris@16: struct extract_or_default; Chris@16: Chris@16: /*! Chris@16: * \brief A metafunction that allows to acquire the result of the value extraction Chris@16: */ Chris@16: template< typename T, typename TagT = void > Chris@16: struct extract_or_throw; Chris@16: Chris@16: /*! Chris@16: * \brief A metafunction that allows to acquire the result of the value extraction Chris@16: */ Chris@16: template< typename T, typename TagT = void > Chris@16: struct extract; Chris@16: Chris@16: } // namespace result_of Chris@16: Chris@16: /*! Chris@16: * \brief Generic attribute value extractor Chris@16: */ Chris@16: template< typename T, typename FallbackPolicyT = fallback_to_none, typename TagT = void > Chris@16: class value_extractor; Chris@16: Chris@16: BOOST_LOG_CLOSE_NAMESPACE // namespace log Chris@16: Chris@16: } // namespace boost Chris@16: Chris@16: #endif // BOOST_LOG_ATTRIBUTES_VALUE_EXTRACTION_FWD_HPP_INCLUDED_