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
00044 public:
00051 handle_type get_handle() const;
00052
00053 private:
00054 friend struct saga::impl::job_runtime;
00055
00056 protected:
00058
00059 istream(saga::impl::istream_interface *impl);
00061
00062 public:
00067 istream();
00068
00073 istream(istream const& rhs);
00074
00079 istream& operator=(istream const& rhs);
00080 };
00081
00083 }}
00084
00085
00086 #if defined(BOOST_MSVC)
00087 #pragma warning(pop)
00088 #endif
00089
00090 #endif // !defined(SAGA_PACKAGES_JOB_ADAPTORS_ISTREAM_HPP)
00091