| Disk ARchive 2.8.1 Full featured and portable backup and archiving tool

Loading...
Searching...
No Matches
entree_stats.hpp
Go to the documentation of this file.
1/*********************************************************************/
2// dar - disk archive - a backup/restoration program
3// Copyright (C) 2002-2025 Denis Corbin
4//
5// This program is free software; you can redistribute it and/or
6// modify it under the terms of the GNU General Public License
7// as published by the Free Software Foundation; either version 2
8// of the License, or (at your option) any later version.
9//
10// This program is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU General Public License for more details.
14//
15// You should have received a copy of the GNU General Public License
16// along with this program; if not, write to the Free Software
17// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18//
19// to contact the author, see the AUTHOR file
20/*********************************************************************/
21
25
26#ifndef ENTREE_STATS_HPP
27#define ENTREE_STATS_HPP
28
29#include "../my_config.h"
30
31extern "C"
32{
33} // end extern "C"
34
35#include "infinint.hpp"
36#include "user_interaction.hpp"
37
38#include <memory>
39
40namespace libdar
41{
42 class cat_entree;
43
46
48 struct entree_stats
49 {
50 infinint num_x;
51 infinint num_d;
52 infinint num_f;
53 infinint num_c;
54 infinint num_b;
55 infinint num_p;
56 infinint num_s;
57 infinint num_l;
58 infinint num_D;
59 infinint num_hard_linked_inodes;
60 infinint num_hard_link_entries;
62 infinint saved;
63 infinint patched;
64 infinint inode_only;
65 infinint total;
66 void clear() { num_x = num_d = num_f = num_c = num_b = num_p
67 = num_s = num_l = num_D = num_hard_linked_inodes
68 = num_hard_link_entries = saved = patched = inode_only = total = 0; };
69 void add(const cat_entree *ref);
70 void listing(user_interaction & dialog) const;
71 };
72
74
75} // end of namespace
76
77#endif
libdar::cat_entree
the root class from all other inherite for any entry in the catalogue
Definition cat_entree.hpp:60
libdar::infinint
the arbitrary large positive integer class
Definition real_infinint.hpp:62
libdar::user_interaction
This is a pure virtual class that is used by libdar when interaction with the user is required.
Definition user_interaction.hpp:58
infinint.hpp
switch module to limitint (32 ou 64 bits integers) or infinint
my_config.h
include macro defined by the configure script and some specific additional ones
libdar
libdar namespace encapsulate all libdar symbols
Definition archive.hpp:47
libdar::entree_stats
holds the statistics contents of a catalogue
Definition entree_stats.hpp:49
libdar::entree_stats::num_s
infinint num_s
number of unix sockets
Definition entree_stats.hpp:56
libdar::entree_stats::num_d
infinint num_d
number of directories
Definition entree_stats.hpp:51
libdar::entree_stats::saved
infinint saved
total number of saved inode (unix inode, not inode class) hard links do not count here
Definition entree_stats.hpp:62
libdar::entree_stats::patched
infinint patched
total number of saved data as binary delta patch
Definition entree_stats.hpp:63
libdar::entree_stats::num_c
infinint num_c
number of char devices
Definition entree_stats.hpp:53
libdar::entree_stats::num_hard_link_entries
infinint num_hard_link_entries
Definition entree_stats.hpp:60
libdar::entree_stats::num_D
infinint num_D
number of Door
Definition entree_stats.hpp:58
libdar::entree_stats::total
infinint total
total number of inode in archive (unix inode, not inode class) hard links do not count here
Definition entree_stats.hpp:65
libdar::entree_stats::num_l
infinint num_l
number of symbolic links
Definition entree_stats.hpp:57
libdar::entree_stats::inode_only
infinint inode_only
total number of inode which metadata changed without data being modified
Definition entree_stats.hpp:64
libdar::entree_stats::num_hard_linked_inodes
infinint num_hard_linked_inodes
number of inode that have more than one link (inode with "hard links")
Definition entree_stats.hpp:59
libdar::entree_stats::num_p
infinint num_p
number of named pipes
Definition entree_stats.hpp:55
libdar::entree_stats::num_f
infinint num_f
number of plain files (hard link or not, thus file directory entries)
Definition entree_stats.hpp:52
libdar::entree_stats::num_x
infinint num_x
number of file referenced as destroyed since last backup
Definition entree_stats.hpp:50
libdar::entree_stats::num_b
infinint num_b
number of block devices
Definition entree_stats.hpp:54
user_interaction.hpp
defines the interaction interface between libdar and users.