URIStreamFactory.cpp 864 B

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