mirror of
https://gitea.home.endeavr.de/Marcel/Tarstats-pp.git
synced 2025-12-10 00:39:01 +01:00
this added output to text file and proper parsing of command line arguments. this also cleaned up some more stuff.
This commit is contained in:
10
tarfunc.h
10
tarfunc.h
@@ -6,6 +6,7 @@
|
||||
#include <fstream>
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include "tarconst.h"
|
||||
|
||||
|
||||
#ifndef TARSTATS___TARFUNC_H
|
||||
@@ -22,8 +23,15 @@ namespace tar {
|
||||
|
||||
// gets type of an item
|
||||
std::string getitemtype(char &n);
|
||||
//
|
||||
|
||||
// to write stats to console in default style
|
||||
void consolestats (std::map<std::string, uintmax_t> &typecount, uintmax_t tarfilesize, uintmax_t sizeofall);
|
||||
|
||||
// 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);
|
||||
// print out helpertext
|
||||
void printhelp();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user