Disk ARchive  2.6.0
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-2018 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 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 
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:
78  };
79 
81 
82 } // end of namespace
83 
84 #endif
generic_file * in
where to read orders from
class generic_file is defined here as well as class fichierthe generic_file interface is widely used ...
the contextual class adds the information of phases in the generic_file
Definition: contextual.hpp:73
this class answers to order given by a zapette object
slave_zapette(generic_file *input, generic_file *output, generic_file *data)
slave_zapette constructor
void action()
main execution method for slave_zapette class
class contextual adds the information of phases in the generic_file
this is the interface class from which all other data transfer classes inherit
contextual * src_ctxt
same as src but seen as contextual
generic_file * out
where to send requested info or data to
generic_file * src
where to read data from
libdar namespace encapsulate all libdar symbols
Definition: archive.hpp:46