Disk ARchive  2.7.15
Full featured and portable backup and archiving tool
proto_tronco.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 
26 
27 #ifndef PROTO_TRONCO_HPP
28 #define PROTO_TRONCO_HPP
29 
30 #include "../my_config.h"
31 #include <string>
32 
33 #include "infinint.hpp"
34 #include "integers.hpp"
35 #include "generic_file.hpp"
36 #include "archive_version.hpp"
37 #include "generic_file.hpp"
38 
39 namespace libdar
40 {
41 
44 
45 
47 
58  typedef infinint (*trailing_clear_data_callback)(generic_file & below, const archive_version & reading_ver);
59 
60  class proto_tronco: public generic_file
61  {
62  public:
64 
65  virtual void set_initial_shift(const infinint & x) = 0;
66  virtual void set_callback_trailing_clear_data(trailing_clear_data_callback) = 0;
67  virtual U_32 get_clear_block_size() const = 0;
68  virtual void write_end_of_file() = 0;
69 
70  };
71 
73 
74 } // end of namespace
75 
76 #endif
class archive_version that rules which archive format to follow
class archive_version manages the version of the archive format
this is the interface class from which all other data transfer classes inherit
generic_file(gf_mode m)
main constructor
the arbitrary large positive integer class
class generic_file is defined here as well as class fichier
infinint(* trailing_clear_data_callback)(generic_file &below, const archive_version &reading_ver)
the trailing_clear_data_callback call back is a mean by which the upper layer cat tell when encrypted...
switch module to limitint (32 ou 64 bits integers) or infinint
are defined here basic integer types that tend to be portable
libdar namespace encapsulate all libdar symbols
Definition: archive.hpp:47