formatting_ostream_fwd.hpp 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 formatting_ostream_fwd.hpp
  9. * \author Andrey Semashev
  10. * \date 11.07.2012
  11. *
  12. * The header contains forward declaration of a string stream used for log record formatting.
  13. */
  14. #ifndef BOOST_LOG_UTILITY_FORMATTING_OSTREAM_FWD_HPP_INCLUDED_
  15. #define BOOST_LOG_UTILITY_FORMATTING_OSTREAM_FWD_HPP_INCLUDED_
  16. #include <string>
  17. #include <memory>
  18. #include <boost/log/detail/config.hpp>
  19. #ifdef BOOST_HAS_PRAGMA_ONCE
  20. #pragma once
  21. #endif
  22. namespace boost {
  23. BOOST_LOG_OPEN_NAMESPACE
  24. /*!
  25. * \brief Stream for log records formatting
  26. */
  27. template<
  28. typename CharT,
  29. typename TraitsT = std::char_traits< CharT >,
  30. typename AllocatorT = std::allocator< CharT >
  31. >
  32. class basic_formatting_ostream;
  33. #ifdef BOOST_LOG_USE_CHAR
  34. typedef basic_formatting_ostream< char > formatting_ostream;
  35. #endif
  36. #ifdef BOOST_LOG_USE_WCHAR_T
  37. typedef basic_formatting_ostream< wchar_t > wformatting_ostream;
  38. #endif
  39. BOOST_LOG_CLOSE_NAMESPACE // namespace log
  40. } // namespace boost
  41. #endif // BOOST_LOG_UTILITY_FORMATTING_OSTREAM_FWD_HPP_INCLUDED_