Cupt
Classes | Public Member Functions | List of all members
cupt::download::Manager Class Reference

performs downloads More...

#include <cupt/download/manager.hpp>

Classes

struct  DownloadEntity
 downloadable element More...
 
struct  ExtendedUri
 uri with aliases More...
 

Public Member Functions

 Manager (const shared_ptr< const Config > &config, const shared_ptr< Progress > &progress)
 constructor More...
 
 ~Manager ()
 destructor
 
string download (const vector< DownloadEntity > &entities)
 downloads entities in parallel More...
 

Detailed Description

performs downloads

Constructor & Destructor Documentation

◆ Manager()

cupt::download::Manager::Manager ( const shared_ptr< const Config > &  config,
const shared_ptr< Progress > &  progress 
)

constructor

Parameters
config
progressprogress meter

Member Function Documentation

◆ download()

string cupt::download::Manager::download ( const vector< DownloadEntity > &  entities)

downloads entities in parallel

Parameters
entitieslist of entities to download
Returns
empty string when everything went ok, human readable download error from arbitrary failed entity if some entities failed to download

The documentation for this class was generated from the following file: