OpenMS
Loading...
Searching...
No Matches
Network.h
Go to the documentation of this file.
1// Copyright (c) 2002-present, OpenMS Inc. -- EKU Tuebingen, ETH Zurich, and FU Berlin
2// SPDX-License-Identifier: BSD-3-Clause
3//
4// --------------------------------------------------------------------------
5// $Maintainer: Chris Bielow $
6// $Authors: Chris Bielow $
7// --------------------------------------------------------------------------
8
9#pragma once
10
11#include <OpenMS/config.h>
12#include <string>
13
14namespace OpenMS
15{
25 class OPENMS_DLLAPI Network
26 {
27 public:
56 static void downloadFile(const std::string& url, const std::string& download_folder);
57 };
58}
Convenience wrapper around NetworkGetRequest for one-shot HTTP/HTTPS downloads.
Definition Network.h:26
static void downloadFile(const std::string &url, const std::string &download_folder)
Download url to download_folder and return when the file is fully written.
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19