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

#include <UploadDelegate.h>

Classes

struct  ErrorInfo
 
struct  Exception
 exception thrown by cbe::Container::upload(const std::string&,const std::string&) and its overloads if the request fails. More...
 

Public Types

using Success = cbe::Object
 
using Error = TransferError
 

Public Member Functions

virtual void onUploadSuccess (cbe::Object &&object)=0
 
virtual void onUploadError (cbe::delegate::TransferError &&transferError, cbe::util::Context &&context)=0
 
virtual void onChunkSent (cbe::Object &&object, std::uint64_t sent, std::uint64_t total)
 

Detailed Description

Member Function Documentation

◆ onUploadSuccess()

virtual void cbe::delegate::UploadDelegate::onUploadSuccess ( cbe::Object &&  object)
pure virtual

Called upon successful Upload.

Parameters
objectInstance of object that is being uploaded.

◆ onUploadError()

virtual void cbe::delegate::UploadDelegate::onUploadError ( cbe::delegate::TransferError &&  transferError,
cbe::util::Context &&  context 
)
pure virtual

Called if an error is encountered.

◆ onChunkSent()

virtual void cbe::delegate::UploadDelegate::onChunkSent ( cbe::Object &&  object,
std::uint64_t  sent,
std::uint64_t  total 
)
virtual

Called when a chunk of data has been sent.

Parameters
objectObject associated with current upload.
sentSize, in number of bytes, of the sent chunk.
totalTotal number of bytes sent so far.

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