]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/log/include/boost/log/utility/open_mode.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / log / include / boost / log / utility / open_mode.hpp
CommitLineData
7c673cae
FG
1/*
2 * Copyright Andrey Semashev 2016.
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 open_mode.hpp
9 * \author Andrey Semashev
10 * \date 01.01.2016
11 *
12 * The header defines resource opening modes.
13 */
14
15#ifndef BOOST_LOG_UTILITY_OPEN_MODE_HPP_INCLUDED_
16#define BOOST_LOG_UTILITY_OPEN_MODE_HPP_INCLUDED_
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
25namespace boost {
26
27BOOST_LOG_OPEN_NAMESPACE
28
29namespace open_mode {
30
31//! Create a new resource; fail if exists already
32struct create_only_tag {} const create_only = create_only_tag();
33//! Opens an existing resource; fail if not exist
34struct open_only_tag {} const open_only = open_only_tag();
35//! Creates a new resource or opens an existing one
36struct open_or_create_tag {} const open_or_create = open_or_create_tag();
37
38} // namespace open_mode
39
40BOOST_LOG_CLOSE_NAMESPACE // namespace log
41
42} // namespace boost
43
44#include <boost/log/detail/footer.hpp>
45
46#endif // BOOST_LOG_UTILITY_OPEN_MODE_HPP_INCLUDED_