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

sar_tools.hpp
Go to the documentation of this file.
1 /*********************************************************************/
2 // dar - disk archive - a backup/restoration program
3 // Copyright (C) 2002-2020 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 : http://dar.linux.free.fr/email.html
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(entrepot & entr,
54 const std::string & base_name,
55 const infinint & min_digits,
56 const std::string & ext, infinint & ret);
57
58 extern std::string sar_tools_make_padded_number(const std::string & num,
59 const infinint & min_digits);
60
61
63
64 } // end of namespace
65
66 #endif
infinint.hpp
switch module to limitint (32 ou 64 bits integers) or infinint
entrepot.hpp
defines the entrepot interface. Entrepot interface defines a generic way to interact with files (slic...
libdar
libdar namespace encapsulate all libdar symbols
Definition: archive.hpp:47