SDK  2.1.4
CloudBackend Software Development Kit - SDK API for C++
cbe::delegate::DownloadDelegate Class Referenceabstract

#include <DownloadDelegate.h>

Classes

struct  ErrorInfo
 
struct  Exception
 exception thrown by: More...
 

Public Types

using Success = DownloadSuccess
 
using Error = cbe::delegate::TransferError
 

Public Member Functions

virtual void onDownloadSuccess (cbe::Object &&object, std::string path)=0
 
virtual void onDownloadError (cbe::delegate::TransferError &&transferError, cbe::util::Context &&context)=0
 
virtual void onChunkReceived (cbe::Object &&object, std::uint64_t received, std::uint64_t total)
 

Detailed Description

Member Function Documentation

◆ onDownloadSuccess()

virtual void cbe::delegate::DownloadDelegate::onDownloadSuccess ( cbe::Object &&  object,
std::string  path 
)
pure virtual

Called upon successful Download.

Parameters
objectInstance of object that is being Downloaded.
pathPath of object to be downloaded.

◆ onDownloadError()

virtual void cbe::delegate::DownloadDelegate::onDownloadError ( cbe::delegate::TransferError &&  transferError,
cbe::util::Context &&  context 
)
pure virtual

Called if an error is encountered.

◆ onChunkReceived()

virtual void cbe::delegate::DownloadDelegate::onChunkReceived ( cbe::Object &&  object,
std::uint64_t  received,
std::uint64_t  total 
)
virtual

Called when a chunk of data has been received.

Parameters
objectObject associated with current download.
receivedSize, in number of bytes, of the received chunk.
totalTotal number of bytes received so far.

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