Files
boost_beast/include/beast/core/file.hpp

39 lines
867 B
C++
Raw Normal View History

2017-07-05 20:30:18 -07:00
//
// Copyright (c) 2015-2016 Vinnie Falco (vinnie dot falco at gmail dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef BEAST_CORE_FILE_HPP
#define BEAST_CORE_FILE_HPP
#include <beast/core/file_base.hpp>
2017-07-06 03:59:33 -07:00
#include <beast/core/file_posix.hpp>
2017-07-05 20:30:18 -07:00
#include <beast/core/file_stdio.hpp>
2017-07-06 02:04:19 -07:00
#include <beast/core/file_win32.hpp>
#include <boost/config.hpp>
2017-07-05 20:30:18 -07:00
namespace beast {
/** An implementation of File.
This alias is set to the best available implementation
of @b File given the platform and build settings.
*/
2017-07-06 03:59:33 -07:00
#if BEAST_DOXYGEN
using file = implementation_defined;
#else
#if BEAST_USE_WIN32_FILE
2017-07-06 02:04:19 -07:00
using file = file_win32;
2017-07-06 03:59:33 -07:00
#elif BEAST_USE_POSIX_FILE
using file = file_posix;
2017-07-06 02:04:19 -07:00
#else
2017-07-05 20:30:18 -07:00
using file = file_stdio;
2017-07-06 03:59:33 -07:00
#endif
2017-07-06 02:04:19 -07:00
#endif
2017-07-05 20:30:18 -07:00
} // beast
#endif