00001
00002
00003
00004
00005
00006
00007 #if !defined(SAGA_PACKAGES_JOB_ADAPTORS_ISTREAM_HPP)
00008 #define SAGA_PACKAGES_JOB_ADAPTORS_ISTREAM_HPP
00009
00010 #include <iosfwd>
00011
00012 #include <boost/config.hpp>
00013
00014 #include <saga/saga/util.hpp>
00015 #include <saga/saga/base.hpp>
00016 #include <saga/saga/packages/job/config.hpp>
00017
00018
00019 #if defined(BOOST_MSVC)
00020 #pragma warning(push)
00021 #pragma warning(disable: 4251 4231 4275 4660)
00022 #endif
00023
00025 namespace saga { namespace job
00026 {
00031 class SAGA_JOB_PACKAGE_EXPORT istream
00032 : public std::basic_istream<char>
00033 {
00034 private:
00035 typedef std::basic_istream<char> base_type;
00036 TR1::shared_ptr<saga::impl::istream_interface> impl_;
00037
00038 #if defined(BOOST_WINDOWS)
00039 typedef void* handle_type;
00040 #else
00041 typedef int handle_type;
00042 #endif
00043
00050 handle_type get_handle() const;
00051
00052 friend struct saga::impl::job_runtime;
00053
00054 protected:
00056
00057 istream(saga::impl::istream_interface *impl);
00059
00060 public:
00065 istream();
00066
00071 istream(istream const& rhs);
00072
00077 istream& operator=(istream const& rhs);
00078 };
00079
00081 }}
00082
00083
00084 #if defined(BOOST_MSVC)
00085 #pragma warning(pop)
00086 #endif
00087
00088 #endif // !defined(SAGA_PACKAGES_JOB_ADAPTORS_ISTREAM_HPP)
00089