FC++  v0.7.2-1128
FileCatalyst Fast File Transfers - C++ Library
FCTransferStats.hpp File Reference

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

#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
 All of the FileCatalyst classes and objects are declared within the fc namespace.
 

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 (const 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 (const 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::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.