summaryrefslogtreecommitdiff
path: root/boost/beast/core/file_win32.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/beast/core/file_win32.hpp')
-rw-r--r--boost/beast/core/file_win32.hpp19
1 files changed, 16 insertions, 3 deletions
diff --git a/boost/beast/core/file_win32.hpp b/boost/beast/core/file_win32.hpp
index 3e9a18abaa..908076d7fe 100644
--- a/boost/beast/core/file_win32.hpp
+++ b/boost/beast/core/file_win32.hpp
@@ -1,5 +1,5 @@
//
-// Copyright (c) 2015-2016 Vinnie Falco (vinnie dot falco at gmail dot com)
+// Copyright (c) 2015-2019 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)
@@ -10,7 +10,7 @@
#ifndef BOOST_BEAST_CORE_FILE_WIN32_HPP
#define BOOST_BEAST_CORE_FILE_WIN32_HPP
-#include <boost/config.hpp>
+#include <boost/beast/core/detail/config.hpp>
#if ! defined(BOOST_BEAST_USE_WIN32_FILE)
# ifdef BOOST_MSVC
@@ -34,7 +34,7 @@ namespace beast {
/** An implementation of File for Win32.
- This class implements a @b File using Win32 native interfaces.
+ This class implements a <em>File</em> using Win32 native interfaces.
*/
class file_win32
{
@@ -56,6 +56,7 @@ public:
If the file is open it is first closed.
*/
+ BOOST_BEAST_DECL
~file_win32();
/** Constructor
@@ -68,12 +69,14 @@ public:
The moved-from object behaves as if default constructed.
*/
+ BOOST_BEAST_DECL
file_win32(file_win32&& other);
/** Assignment
The moved-from object behaves as if default constructed.
*/
+ BOOST_BEAST_DECL
file_win32& operator=(file_win32&& other);
/// Returns the native handle associated with the file.
@@ -89,6 +92,7 @@ public:
@param h The native file handle to assign.
*/
+ BOOST_BEAST_DECL
void
native_handle(native_handle_type h);
@@ -103,6 +107,7 @@ public:
@param ec Set to the error, if any occurred.
*/
+ BOOST_BEAST_DECL
void
close(error_code& ec);
@@ -114,6 +119,7 @@ public:
@param ec Set to the error, if any occurred
*/
+ BOOST_BEAST_DECL
void
open(char const* path, file_mode mode, error_code& ec);
@@ -123,6 +129,7 @@ public:
@return The size in bytes
*/
+ BOOST_BEAST_DECL
std::uint64_t
size(error_code& ec) const;
@@ -132,6 +139,7 @@ public:
@return The offset in bytes from the beginning of the file
*/
+ BOOST_BEAST_DECL
std::uint64_t
pos(error_code& ec);
@@ -141,6 +149,7 @@ public:
@param ec Set to the error, if any occurred
*/
+ BOOST_BEAST_DECL
void
seek(std::uint64_t offset, error_code& ec);
@@ -152,6 +161,7 @@ public:
@param ec Set to the error, if any occurred
*/
+ BOOST_BEAST_DECL
std::size_t
read(void* buffer, std::size_t n, error_code& ec);
@@ -163,6 +173,7 @@ public:
@param ec Set to the error, if any occurred
*/
+ BOOST_BEAST_DECL
std::size_t
write(void const* buffer, std::size_t n, error_code& ec);
};
@@ -170,7 +181,9 @@ public:
} // beast
} // boost
+#ifdef BOOST_BEAST_HEADER_ONLY
#include <boost/beast/core/impl/file_win32.ipp>
+#endif
#endif