auto_newline_mode.hpp 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * Copyright Andrey Semashev 2019.
  3. * Distributed under the Boost Software License, Version 1.0.
  4. * (See accompanying file LICENSE_1_0.txt or copy at
  5. * https://www.boost.org/LICENSE_1_0.txt)
  6. */
  7. /*!
  8. * \file sinks/auto_newline_mode.hpp
  9. * \author Andrey Semashev
  10. * \date 23.06.2019
  11. *
  12. * The header contains definition of auto-newline modes.
  13. */
  14. #ifndef BOOST_LOG_SINKS_AUTO_NEWLINE_MODE_HPP_INCLUDED_HPP_
  15. #define BOOST_LOG_SINKS_AUTO_NEWLINE_MODE_HPP_INCLUDED_HPP_
  16. #include <boost/log/detail/config.hpp>
  17. #include <boost/log/detail/header.hpp>
  18. #ifdef BOOST_HAS_PRAGMA_ONCE
  19. #pragma once
  20. #endif
  21. namespace boost {
  22. BOOST_LOG_OPEN_NAMESPACE
  23. namespace sinks {
  24. //! The enum lists automatic trailing newline modes
  25. enum auto_newline_mode
  26. {
  27. disabled_auto_newline, //!< Do not insert automatic trailing newline characters
  28. always_insert, //!< Always insert automatic trailing newline characters
  29. insert_if_missing //!< Insert automatic trailing newline characters, if not present already
  30. };
  31. } // namespace sinks
  32. BOOST_LOG_CLOSE_NAMESPACE // namespace log
  33. } // namespace boost
  34. #include <boost/log/detail/footer.hpp>
  35. #endif // BOOST_LOG_SINKS_AUTO_NEWLINE_MODE_HPP_INCLUDED_HPP_