Loading...
Searching...
No Matches
entree_stats.hpp
Go to the documentation of this file.
/*********************************************************************/
// dar - disk archive - a backup/restoration program
// Copyright (C) 2002-2026 Denis Corbin
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
//
// to contact the author, see the AUTHOR file
/*********************************************************************/
#ifndef ENTREE_STATS_HPP
#define ENTREE_STATS_HPP
#include "../my_config.h"
extern "C"
{
} // end extern "C"
#include "infinint.hpp"
#include "user_interaction.hpp"
#include <memory>
namespace libdar
{
class cat_entree;
struct entree_stats
{
infinint num_x;
infinint num_d;
infinint num_f;
infinint num_c;
infinint num_b;
infinint num_p;
infinint num_s;
infinint num_l;
infinint num_D;
infinint num_hard_linked_inodes;
infinint num_hard_link_entries;
infinint saved;
infinint patched;
infinint inode_only;
infinint total;
void clear() { num_x = num_d = num_f = num_c = num_b = num_p
= num_s = num_l = num_D = num_hard_linked_inodes
= num_hard_link_entries = saved = patched = inode_only = total = 0; };
void add(const cat_entree *ref);
void listing(user_interaction & dialog) const;
};
} // end of namespace
#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.