// Copyright (c) 2005-2009 Hartmut Kaiser // // 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) #include #ifdef SAGA_WINDOWS #if !defined(ADAPTORS_DEFAULT_JOB_DEFAULT_JOB_OSTREAM_HPP) #define ADAPTORS_DEFAULT_JOB_DEFAULT_JOB_OSTREAM_HPP #include #include #include #include "default_job_stream.hpp" /////////////////////////////////////////////////////////////////////////////// class default_job_ostream : public saga::job::ostream { private: typedef impl::default_job_stream impl_type; public: template default_job_ostream(saga::impl::v1_0::job_cpi* cpi, Stream& child_ostream) : saga::job::ostream( new impl_type(cpi, child_ostream.rdbuf(), child_ostream.get_handle().disown())) { } }; #endif // !defined(ADAPTORS_DEFAULT_JOB_DEFAULT_JOB_OSTREAM_HPP) #endif // SAGA_WINDOWS