FC++  v0.9.0-9e9b65
FileCatalyst Fast File Transfers - C++ Library
FCTransferStats.hpp File Reference
#include "FileCatalyst.hpp"
Include dependency graph for FCTransferStats.hpp:
This graph shows which files directly or indirectly include this file:

Classes

class  fc::TransferStats
 File transfer statistics. More...
 

Namespaces

 fc
 

Functions

std::string fc::formatTransferStatsEState (const fc::TransferStats::EState state)
 Format the MD5 and transfer state enums into text strings. More...
 
time_t fc::to_time_t (const std::chrono::high_resolution_clock::time_point &tp)
 Convenience function to convert time_point objects to traditional time_t values (seconds since 1970-01-01 00:00:00 UTC). More...
 
std::string fc::formatTimeRecent (const std::chrono::high_resolution_clock::time_point &tp)
 Format the time in an easy-to-read text string. More...
 
std::string fc::formatTimeRecent (const time_t tt)
 Format the absolute time in an easy-to-read text string. More...
 
std::string fc::formatTimeDuration (const std::chrono::high_resolution_clock::duration &d)
 Format the "time remaining" statistic as a number followed by a common 1-letter description. More...
 
std::string fc::formatTimeDuration (const time_t tt)
 Format the relative "time remaining" statistic as a number followed by a common 1-letter description. More...
 
std::string fc::formatTimeDuration2 (const std::chrono::high_resolution_clock::duration &d)
 Format the "time remaining" statistic as a common time string, such as HH:MM:SS. More...
 
std::string fc::formatTimeDuration2 (const time_t tt)
 Format the relative "time remaining" statistic as a common time string, such as HH:MM:SS. More...
 
std::string fc::formatTimestamp (std::chrono::high_resolution_clock::time_point tp)
 Format the absolute time point using "YYYY:MM:DD HH:MM:SS". More...
 
std::string fc::formatTimestamp2 (std::chrono::high_resolution_clock::time_point tp)
 Format the absolute time point using "YYYY:MM:DD HH:MM:SS.mmmmmm" where mmmmmm is microseconds. More...
 
std::string fc::formatTransferRate (const uint64_t bps)
 Format the transfer rate statistic using the common descriptions Kbps, Mbps, etc. More...
 
std::string fc::formatTransferRate (const fc::ECommonBandwidth &bandwidth)
 Similar to the other fc::formatTransferRate(), but takes a bandwidth enum so the enumerator doesn't get converted to a numeric value. More...
 
std::string fc::formatBytesSI (const uint64_t bytes)
 Format the payload bytes using SI units (1000 bytes per "K"). More...
 
std::string fc::formatBytesIEC (const uint64_t bytes)
 Format the payload bytes using IEC units (1024 bytes per "K"). More...
 
std::string fc::formatBytesOldStyle (const uint64_t bytes)
 Format the payload bytes using IEC units (1024 bytes per "K"), similar to IEC but leave out the middle "i". More...
 

Detailed Description

Statistics representing a single file within a transfer of 1 or more files.