| 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 | |
| 15 | #ifndef BOOST_LOG_SINKS_AUTO_NEWLINE_MODE_HPP_INCLUDED_HPP_ |
| 16 | #define BOOST_LOG_SINKS_AUTO_NEWLINE_MODE_HPP_INCLUDED_HPP_ |
| 17 | |
| 18 | #include <boost/log/detail/config.hpp> |
| 19 | #include <boost/log/detail/header.hpp> |
| 20 | |
| 21 | #ifdef BOOST_HAS_PRAGMA_ONCE |
| 22 | #pragma once |
| 23 | #endif |
| 24 | |
| 25 | namespace boost { |
| 26 | |
| 27 | BOOST_LOG_OPEN_NAMESPACE |
| 28 | |
| 29 | namespace sinks { |
| 30 | |
| 31 | //! The enum lists automatic trailing newline modes |
| 32 | enum auto_newline_mode |
| 33 | { |
| 34 | disabled_auto_newline, //!< Do not insert automatic trailing newline characters |
| 35 | always_insert, //!< Always insert automatic trailing newline characters |
| 36 | insert_if_missing //!< Insert automatic trailing newline characters, if not present already |
| 37 | }; |
| 38 | |
| 39 | } // namespace sinks |
| 40 | |
| 41 | BOOST_LOG_CLOSE_NAMESPACE // namespace log |
| 42 | |
| 43 | } // namespace boost |
| 44 | |
| 45 | #include <boost/log/detail/footer.hpp> |
| 46 | |
| 47 | #endif // BOOST_LOG_SINKS_AUTO_NEWLINE_MODE_HPP_INCLUDED_HPP_ |
| 48 | |