Disk ARchive  2.6.1
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-2019 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 //
19 // to contact the author : http://dar.linux.free.fr/email.html
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  {
61  infinint saved;
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
infinint num_hard_linked_inodes
number of inode that have more than one link (inode with "hard links")
infinint num_c
number of char devices
holds the statistics contents of a catalogue
infinint num_p
number of named pipes
infinint total
total number of inode in archive (unix inode, not inode class) hard links do not count here ...
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
This is a pure virtual class that is used by libdar when interaction with the user is required...
infinint num_hard_link_entries
infinint num_d
number of directories
defines the interaction interface between libdar and users.
infinint inode_only
total number of inode which metadata changed without data being modified
infinint patched
total number of saved data as binary delta patch
switch module to limitint (32 ou 64 bits integers) or infinint
infinint num_D
number of Door
infinint num_s
number of unix sockets
infinint num_l
number of symbolic links
the arbitrary large positive integer class
the root class from all other inherite for any entry in the catalogue
Definition: cat_entree.hpp:59
infinint saved
total number of saved inode (unix inode, not inode class) hard links do not count here ...
libdar namespace encapsulate all libdar symbols
Definition: archive.hpp:46
infinint num_b
number of block devices