Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:39:21

0001 /*
0002  *          Copyright Andrey Semashev 2007 - 2015.
0003  * Distributed under the Boost Software License, Version 1.0.
0004  *    (See accompanying file LICENSE_1_0.txt or copy at
0005  *          http://www.boost.org/LICENSE_1_0.txt)
0006  */
0007 /*!
0008  * \file   process_id.hpp
0009  * \author Andrey Semashev
0010  * \date   12.09.2009
0011  *
0012  * \brief  This header is the Boost.Log library implementation, see the library documentation
0013  *         at http://www.boost.org/doc/libs/release/libs/log/doc/html/index.html.
0014  */
0015 
0016 #ifndef BOOST_LOG_DETAIL_PROCESS_ID_HPP_INCLUDED_
0017 #define BOOST_LOG_DETAIL_PROCESS_ID_HPP_INCLUDED_
0018 
0019 #include <iosfwd>
0020 #include <boost/log/detail/config.hpp>
0021 #include <boost/log/detail/id.hpp>
0022 #include <boost/log/detail/header.hpp>
0023 
0024 #ifdef BOOST_HAS_PRAGMA_ONCE
0025 #pragma once
0026 #endif
0027 
0028 namespace boost {
0029 
0030 BOOST_LOG_OPEN_NAMESPACE
0031 
0032 namespace aux {
0033 
0034 //! The process id descriptor
0035 struct process
0036 {
0037     typedef unsigned long native_type;
0038     typedef boost::log::aux::id< process > id;
0039 };
0040 
0041 namespace this_process {
0042 
0043 //! The function returns current process identifier
0044 BOOST_LOG_API process::id get_id();
0045 
0046 } // namespace this_process
0047 
0048 template< typename CharT, typename TraitsT >
0049 BOOST_LOG_API std::basic_ostream< CharT, TraitsT >&
0050 operator<< (std::basic_ostream< CharT, TraitsT >& strm, process::id const& pid);
0051 
0052 } // namespace aux
0053 
0054 BOOST_LOG_CLOSE_NAMESPACE // namespace log
0055 
0056 } // namespace boost
0057 
0058 #include <boost/log/detail/footer.hpp>
0059 
0060 #endif // BOOST_LOG_DETAIL_PROCESS_ID_HPP_INCLUDED_