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