OpenTwin
0.1
OpenTwin
Loading...
Searching...
No Matches
DownloadFile.h
Go to the documentation of this file.
1
/*
2
* DownloadFile.h
3
*
4
* Copyright (c) 2024 openTwin
5
*/
6
7
#pragma once
8
9
#include "
OTCommunication/CommunicationAPIExport.h
"
10
#include "
OTCommunication/CommunicationTypes.h
"
11
12
// C++ header
13
#include <string>
14
15
namespace
ot
{
16
namespace
DownloadFile {
17
24
OT_COMMUNICATION_API_EXPORT
bool
download
(
25
const
std::string & _fileUrl,
26
const
std::string & _fileName,
27
std::string& _tempFolder,
28
std::string& _error,
29
int
_timeout = 3000
30
);
31
}
32
}
CommunicationAPIExport.h
OT_COMMUNICATION_API_EXPORT
#define OT_COMMUNICATION_API_EXPORT
Definition
CommunicationAPIExport.h:6
CommunicationTypes.h
ot::DownloadFile::download
OT_COMMUNICATION_API_EXPORT bool download(const std::string &_fileUrl, const std::string &_fileName, std::string &_tempFolder, std::string &_error, int _timeout=3000)
Download a file via HTTP from a server.
Definition
DownloadFile.cpp:28
ot
Definition
Connector.h:8
Libraries
OTCommunication
include
OTCommunication
DownloadFile.h
Generated by
1.10.0