Disk ARchive  2.7.15
Full featured and portable backup and archiving tool
entree_stats.hpp
Go to the documentation of this file.
1 /*********************************************************************/
2 // dar - disk archive - a backup/restoration program
3 // Copyright (C) 2002-2024 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 
31 extern "C"
32 {
33 } // end extern "C"
34 
35 #include "infinint.hpp"
36 #include "user_interaction.hpp"
37 
38 #include <memory>
39 
40 namespace libdar
41 {
42  class cat_entree;
43 
46 
48  struct entree_stats
49  {
66  void clear() { num_x = num_d = num_f = num_c = num_b = num_p
69  void add(const cat_entree *ref);
70  void listing(user_interaction & dialog) const;
71  };
72 
74 
75 } // end of namespace
76 
77 #endif
the root class from all other inherite for any entry in the catalogue
Definition: cat_entree.hpp:60
the arbitrary large positive integer class
This is a pure virtual class that is used by libdar when interaction with the user is required.
switch module to limitint (32 ou 64 bits integers) or infinint
libdar namespace encapsulate all libdar symbols
Definition: archive.hpp:47
holds the statistics contents of a catalogue
infinint num_s
number of unix sockets
infinint num_d
number of directories
infinint saved
total number of saved inode (unix inode, not inode class) hard links do not count here
infinint patched
total number of saved data as binary delta patch
infinint num_c
number of char devices
infinint num_hard_link_entries
infinint num_D
number of Door
infinint total
total number of inode in archive (unix inode, not inode class) hard links do not count here
infinint num_l
number of symbolic links
infinint inode_only
total number of inode which metadata changed without data being modified
infinint num_hard_linked_inodes
number of inode that have more than one link (inode with "hard links")
infinint num_p
number of named pipes
infinint num_f
number of plain files (hard link or not, thus file directory entries)
infinint num_x
number of file referenced as destroyed since last backup
infinint num_b
number of block devices
defines the interaction interface between libdar and users.