Android-cuttlefish cvd tool
Public Member Functions | Public Attributes | Private Attributes | List of all members
TransferLedger Struct Reference
Collaboration diagram for TransferLedger:
Collaboration graph
[legend]

Public Member Functions

 TransferLedger ()
 
bool operator== (const TransferLedger &other) const
 
bool operator!= (const TransferLedger &other) const
 
void Reset ()
 
std::string TransferRate ()
 
void ReportProgress (LinePrinter &lp, const std::string &file, uint64_t file_copied_bytes, uint64_t file_total_bytes)
 
void ReportTransferRate (LinePrinter &lp, const std::string &name, TransferDirection direction)
 

Public Attributes

std::chrono::steady_clock::time_point start_time
 
uint64_t files_transferred
 
uint64_t files_skipped
 
uint64_t bytes_transferred
 
uint64_t bytes_expected
 
bool expect_multiple_files
 

Private Attributes

std::string last_progress_str
 
std::chrono::steady_clock::time_point last_progress_time
 

Constructor & Destructor Documentation

◆ TransferLedger()

TransferLedger::TransferLedger ( )
inline

Member Function Documentation

◆ operator!=()

bool TransferLedger::operator!= ( const TransferLedger other) const
inline

◆ operator==()

bool TransferLedger::operator== ( const TransferLedger other) const
inline

◆ ReportProgress()

void TransferLedger::ReportProgress ( LinePrinter lp,
const std::string &  file,
uint64_t  file_copied_bytes,
uint64_t  file_total_bytes 
)
inline

◆ ReportTransferRate()

void TransferLedger::ReportTransferRate ( LinePrinter lp,
const std::string &  name,
TransferDirection  direction 
)
inline

◆ Reset()

void TransferLedger::Reset ( )
inline

◆ TransferRate()

std::string TransferLedger::TransferRate ( )
inline

Member Data Documentation

◆ bytes_expected

uint64_t TransferLedger::bytes_expected

◆ bytes_transferred

uint64_t TransferLedger::bytes_transferred

◆ expect_multiple_files

bool TransferLedger::expect_multiple_files

◆ files_skipped

uint64_t TransferLedger::files_skipped

◆ files_transferred

uint64_t TransferLedger::files_transferred

◆ last_progress_str

std::string TransferLedger::last_progress_str
private

◆ last_progress_time

std::chrono::steady_clock::time_point TransferLedger::last_progress_time
private

◆ start_time

std::chrono::steady_clock::time_point TransferLedger::start_time

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