SAGA Adaptor CPI v.1.0
|
00001 // Copyright (c) 2005-2009 Hartmut Kaiser 00002 // 00003 // Distributed under the Boost Software License, Version 1.0. (See accompanying 00004 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 00005 00006 #if !defined(SAGA_ADAPTORS_URL_HPP) 00007 #define SAGA_ADAPTORS_URL_HPP 00008 00009 #include <saga/saga/url.hpp> 00010 00011 // suppress warnings about dependent classes not being exported from the dll 00012 #if defined(BOOST_MSVC) 00013 #pragma warning(push) 00014 #pragma warning(disable: 4251 4231 4275 4660) 00015 #endif 00016 00018 namespace saga { namespace adaptors 00019 { 00027 class SAGA_EXPORT url : public saga::url 00028 { 00029 public: 00030 url(std::string const& urlstr) : saga::url(urlstr, nocheck()) {} 00031 }; 00032 00034 SAGA_EXPORT std::ostream& operator<< (std::ostream& os, url const& u); 00035 SAGA_EXPORT std::istream& operator>> (std::istream& is, url& u); 00036 SAGA_EXPORT bool operator== (saga::adaptors::url const& lhs, 00037 saga::adaptors::url const& rhs); 00038 SAGA_EXPORT bool operator< (saga::adaptors::url const& lhs, 00039 saga::adaptors::url const& rhs); 00040 00042 }} // namespace saga::adaptor 00043 00044 // re-enable warnings about dependent classes not being exported from the dll 00045 #if defined(BOOST_MSVC) 00046 #pragma warning(pop) 00047 #endif 00048 00049 #endif // SAGA_ADAPTORS_URL_HPP 00050