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

Loading...
Searching...
No Matches
sar_tools.hpp
Go to the documentation of this file.
1/*********************************************************************/
2// dar - disk archive - a backup/restoration program
3// Copyright (C) 2002-2026 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 SAR_TOOLS_HPP
27#define SAR_TOOLS_HPP
28
29#include "../my_config.h"
30
31#include <string>
32#include "infinint.hpp"
33#include "entrepot.hpp"
34
35 namespace libdar
36{
37
40
41 extern std::string sar_tools_make_filename(const std::string & base_name,
42 const infinint & num,
43 const infinint & min_digits,
44 const std::string & ext);
45
46
47 extern bool sar_tools_extract_num(const std::string & filename,
48 const std::string & base_name,
49 const infinint & min_digits,
50 const std::string & ext,
51 infinint & ret);
52
53 extern bool sar_tools_get_higher_number_in_dir(user_interaction & ui,
54 entrepot & entr,
55 const std::string & base_name,
56 const infinint & min_digits,
57 const std::string & ext, infinint & ret);
58
59 extern void sar_tools_remove_higher_slices_than(entrepot & entr,
60 const std::string & base_name,
61 const infinint & min_digits,
62 const std::string & ext,
63 const infinint & higher_slice_num_to_keep,
64 user_interaction & ui);
65
66
67 extern std::string sar_tools_make_padded_number(const std::string & num,
68 const infinint & min_digits);
69
70
72
73} // end of namespace
74
75#endif
libdar::entrepot
the Entrepot interface
Definition entrepot.hpp:57
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
entrepot.hpp
defines the entrepot interface.
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