Disk ARchive: proto_tronco.hpp Source File

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

Loading...
Searching...
No Matches
proto_tronco.hpp
Go to the documentation of this file.
1/*********************************************************************/
2// dar - disk archive - a backup/restoration program
3// Copyright (C) 2002-2025 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
39namespace libdar
40{
41
44
45
47
60 typedef infinint (*trailing_clear_data_callback)(generic_file & below, const archive_version & reading_ver);
61
62 class proto_tronco: public generic_file
63 {
64 public:
65 using generic_file::generic_file;
66
67 virtual void set_initial_shift(const infinint & x) = 0;
68 virtual void set_callback_trailing_clear_data(trailing_clear_data_callback) = 0;
69 virtual U_32 get_clear_block_size() const = 0;
70 virtual void write_end_of_file() = 0;
71
72 };
73
75
76} // end of namespace
77
78#endif
archive_version.hpp
class archive_version that rules which archive format to follow
libdar::archive_version
class archive_version manages the version of the archive format
Definition archive_version.hpp:47
libdar::generic_file
this is the interface class from which all other data transfer classes inherit
Definition generic_file.hpp:77
libdar::generic_file::generic_file
generic_file(gf_mode m)
main constructor
Definition generic_file.hpp:80
libdar::infinint
the arbitrary large positive integer class
Definition real_infinint.hpp:62
generic_file.hpp
class generic_file is defined here as well as class fichier
libdar::trailing_clear_data_callback
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...
Definition proto_tronco.hpp:60
infinint.hpp
switch module to limitint (32 ou 64 bits integers) or infinint
integers.hpp
are defined here basic integer types that tend to be portable
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