mirror of
https://gitea.home.endeavr.de/Marcel/Tarstats-pp.git
synced 2025-12-10 00:39:01 +01:00
this added json output to stdout, to file and global json stats to file. tarstats is feature complete.
This commit is contained in:
12
tarfunc.h
12
tarfunc.h
@@ -33,8 +33,16 @@ namespace tar {
|
||||
|
||||
// to write global stats to stdout
|
||||
void consoleglobalstats (std::map<std::string, uintmax_t> &typecount, uintmax_t itemfilesize,
|
||||
uintmax_t szfiles, std::vector<std::string> &files);
|
||||
|
||||
uintmax_t szfiles, size_t fileamount);
|
||||
// to write JSON stats of a file to stdout
|
||||
void jsonconsolestats (std::map<std::string, uintmax_t> &typecount, uintmax_t tarfilesize, uintmax_t sizeofall,
|
||||
std::string &filename, std::string type);
|
||||
// to write JSON stats to file
|
||||
void jsonfilestats (std::map<std::string, uintmax_t> &typecount, uintmax_t tarfilesize, uintmax_t sizeofall,
|
||||
std::string &filename, std::string type);
|
||||
// to write global stats to JSON file
|
||||
void jsonglobalfile (std::map<std::string, uintmax_t> &typecount, uintmax_t itemsize,
|
||||
uintmax_t filesize, size_t fileamount);
|
||||
// to write default console output to txt file
|
||||
void txtfilestats(std::map<std::string, uintmax_t> &typecount, uintmax_t tarfilesize, uintmax_t sizeofall,
|
||||
std::string archiveName);
|
||||
|
||||
Reference in New Issue
Block a user