1 // 2 // URIStreamFactory.cpp 3 // 4 // Library: Foundation 5 // Package: URI 6 // Module: URIStreamFactory 7 // 8 // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. 9 // and Contributors. 10 // 11 // SPDX-License-Identifier: BSL-1.0 12 // 13 14 15 #include "Poco/URIStreamFactory.h" 16 #include <algorithm> 17 18 19 namespace Poco { 20 21 URIStreamFactory()22URIStreamFactory::URIStreamFactory() 23 { 24 } 25 26 ~URIStreamFactory()27URIStreamFactory::~URIStreamFactory() 28 { 29 } 30 31 URIRedirection(const std::string & uri)32URIRedirection::URIRedirection(const std::string& uri): 33 _uri(uri) 34 { 35 } 36 37 URIRedirection(const URIRedirection & redir)38URIRedirection::URIRedirection(const URIRedirection& redir): 39 _uri(redir._uri) 40 { 41 } 42 43 operator =(const URIRedirection & redir)44URIRedirection& URIRedirection::operator = (const URIRedirection& redir) 45 { 46 URIRedirection tmp(redir); 47 swap(tmp); 48 return *this; 49 } 50 51 swap(URIRedirection & redir)52void URIRedirection::swap(URIRedirection& redir) 53 { 54 std::swap(_uri, redir._uri); 55 } 56 57 58 } // namespace Poco 59