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

slave_zapette.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
31
32 #ifndef SLAVE_ZAPETTE_HPP
33 #define SLAVE_ZAPETTE_HPP
34
35 #include "../my_config.h"
36 #include "generic_file.hpp"
37 #include "contextual.hpp"
38
39 namespace libdar
40 {
41
42
45
47
50
51 class slave_zapette
52 {
53 public:
54
56
60 slave_zapette(generic_file *input, generic_file *output, generic_file *data);
61 slave_zapette(const slave_zapette & ref) = delete;
62 slave_zapette(slave_zapette && ref) noexcept = delete;
63 slave_zapette & operator = (const slave_zapette & ref) = delete;
64 slave_zapette & operator = (slave_zapette && ref) noexcept = delete;
65 ~slave_zapette();
66
68
71 void action();
72
73 private:
74 generic_file *in;
75 generic_file *out;
76 generic_file *src;
77 contextual *src_ctxt;
78 };
79
81
82 } // end of namespace
83
84 #endif
libdar::slave_zapette::action
void action()
main execution method for slave_zapette class
contextual.hpp
class contextual adds the information of phases in the generic_file
generic_file.hpp
class generic_file is defined here as well as class fichier
libdar::slave_zapette::out
generic_file * out
where to send requested info or data to
Definition: slave_zapette.hpp:75
libdar::slave_zapette
this class answers to order given by a zapette object
Definition: slave_zapette.hpp:52
libdar::generic_file
this is the interface class from which all other data transfer classes inherit
Definition: generic_file.hpp:77
libdar::contextual
the contextual class adds the information of phases in the generic_file
Definition: contextual.hpp:74
libdar::slave_zapette::src_ctxt
contextual * src_ctxt
same as src but seen as contextual
Definition: slave_zapette.hpp:77
libdar::slave_zapette::slave_zapette
slave_zapette(generic_file *input, generic_file *output, generic_file *data)
slave_zapette constructor
libdar::slave_zapette::src
generic_file * src
where to read data from
Definition: slave_zapette.hpp:76
libdar::slave_zapette::in
generic_file * in
where to read orders from
Definition: slave_zapette.hpp:74
libdar
libdar namespace encapsulate all libdar symbols
Definition: archive.hpp:47