value_extraction_fwd.hpp 1.6 KB

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