Realistic 3D camera system
3D camera system components
write.hpp
Go to the documentation of this file.
1 //
2 // write.hpp
3 // ~~~~~~~~~
4 //
5 // Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com)
6 //
7 // Distributed under the Boost Software License, Version 1.0. (See accompanying
8 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9 //
10 
11 #ifndef ASIO_WRITE_HPP
12 #define ASIO_WRITE_HPP
13 
14 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
15 # pragma once
16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
17 
18 #include "asio/detail/config.hpp"
19 #include <cstddef>
20 #include "asio/async_result.hpp"
22 #include "asio/error.hpp"
23 
25 
26 namespace asio {
27 
34 
36 
71 template <typename SyncWriteStream, typename ConstBufferSequence>
72 std::size_t write(SyncWriteStream& s, const ConstBufferSequence& buffers);
73 
75 
110 template <typename SyncWriteStream, typename ConstBufferSequence>
111 std::size_t write(SyncWriteStream& s, const ConstBufferSequence& buffers,
112  asio::error_code& ec);
113 
115 
160 template <typename SyncWriteStream, typename ConstBufferSequence,
161  typename CompletionCondition>
162 std::size_t write(SyncWriteStream& s, const ConstBufferSequence& buffers,
163  CompletionCondition completion_condition);
164 
166 
204 template <typename SyncWriteStream, typename ConstBufferSequence,
205  typename CompletionCondition>
206 std::size_t write(SyncWriteStream& s, const ConstBufferSequence& buffers,
207  CompletionCondition completion_condition, asio::error_code& ec);
208 
209 #if !defined(ASIO_NO_IOSTREAM)
210 
212 
237 template <typename SyncWriteStream, typename Allocator>
238 std::size_t write(SyncWriteStream& s, basic_streambuf<Allocator>& b);
239 
241 
266 template <typename SyncWriteStream, typename Allocator>
267 std::size_t write(SyncWriteStream& s, basic_streambuf<Allocator>& b,
268  asio::error_code& ec);
269 
271 
305 template <typename SyncWriteStream, typename Allocator,
306  typename CompletionCondition>
307 std::size_t write(SyncWriteStream& s, basic_streambuf<Allocator>& b,
308  CompletionCondition completion_condition);
309 
311 
346 template <typename SyncWriteStream, typename Allocator,
347  typename CompletionCondition>
348 std::size_t write(SyncWriteStream& s, basic_streambuf<Allocator>& b,
349  CompletionCondition completion_condition, asio::error_code& ec);
350 
351 #endif // !defined(ASIO_NO_IOSTREAM)
352 
361 
364 
414 template <typename AsyncWriteStream, typename ConstBufferSequence,
415  typename WriteHandler>
416 ASIO_INITFN_RESULT_TYPE(WriteHandler,
417  void (asio::error_code, std::size_t))
418 async_write(AsyncWriteStream& s, const ConstBufferSequence& buffers,
419  ASIO_MOVE_ARG(WriteHandler) handler);
420 
423 
488 template <typename AsyncWriteStream, typename ConstBufferSequence,
489  typename CompletionCondition, typename WriteHandler>
490 ASIO_INITFN_RESULT_TYPE(WriteHandler,
491  void (asio::error_code, std::size_t))
492 async_write(AsyncWriteStream& s, const ConstBufferSequence& buffers,
493  CompletionCondition completion_condition,
494  ASIO_MOVE_ARG(WriteHandler) handler);
495 
496 #if !defined(ASIO_NO_IOSTREAM)
497 
500 
539 template <typename AsyncWriteStream, typename Allocator, typename WriteHandler>
540 ASIO_INITFN_RESULT_TYPE(WriteHandler,
541  void (asio::error_code, std::size_t))
542 async_write(AsyncWriteStream& s, basic_streambuf<Allocator>& b,
543  ASIO_MOVE_ARG(WriteHandler) handler);
544 
547 
600 template <typename AsyncWriteStream, typename Allocator,
601  typename CompletionCondition, typename WriteHandler>
602 ASIO_INITFN_RESULT_TYPE(WriteHandler,
603  void (asio::error_code, std::size_t))
604 async_write(AsyncWriteStream& s, basic_streambuf<Allocator>& b,
605  CompletionCondition completion_condition,
606  ASIO_MOVE_ARG(WriteHandler) handler);
607 
608 #endif // !defined(ASIO_NO_IOSTREAM)
609 
612 } // namespace asio
613 
615 
616 #include "asio/impl/write.hpp"
617 
618 #endif // ASIO_WRITE_HPP
SocketService & s
Definition: connect.hpp:521
std::size_t write(SyncWriteStream &s, const ConstBufferSequence &buffers, CompletionCondition completion_condition, asio::error_code &ec)
Write a certain amount of data to a stream before returning.
Definition: write.hpp:37
STL namespace.
asio::basic_streambuf< Allocator > & b
Definition: read.hpp:702
ASIO_INITFN_RESULT_TYPE(ComposedConnectHandler, void(asio::error_code, Iterator)) async_connect(basic_socket< Protocol
const MutableBufferSequence & buffers
Definition: read.hpp:521
asio::basic_streambuf< Allocator > CompletionCondition ASIO_MOVE_ARG(ReadHandler) handler)
Definition: read.hpp:704
Class to represent an error code value.
Definition: error_code.hpp:80
const MutableBufferSequence CompletionCondition completion_condition
Definition: read.hpp:521