Loading...
Searching...
No Matches
slave_zapette.hpp
Go to the documentation of this file.
/*********************************************************************/
// dar - disk archive - a backup/restoration program
// Copyright (C) 2002-2024 Denis Corbin
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
//
// to contact the author, see the AUTHOR file
/*********************************************************************/
#ifndef SLAVE_ZAPETTE_HPP
#define SLAVE_ZAPETTE_HPP
#include "../my_config.h"
#include "generic_file.hpp"
#include "contextual.hpp"
namespace libdar
{
class slave_zapette
{
public:
slave_zapette(generic_file *input, generic_file *output, generic_file *data);
slave_zapette(const slave_zapette & ref) = delete;
slave_zapette(slave_zapette && ref) noexcept = delete;
slave_zapette & operator = (const slave_zapette & ref) = delete;
slave_zapette & operator = (slave_zapette && ref) noexcept = delete;
~slave_zapette();
void action();
private:
generic_file *in;
generic_file *out;
generic_file *src;
contextual *src_ctxt;
};
} // end of namespace
#endif
libdar::contextual
the contextual class adds the information of phases in the generic_file
Definition contextual.hpp:74
libdar::generic_file
this is the interface class from which all other data transfer classes inherit
Definition generic_file.hpp:77
libdar::slave_zapette
this class answers to order given by a zapette object
Definition slave_zapette.hpp:54
libdar::slave_zapette::src_ctxt
contextual * src_ctxt
same as src but seen as contextual
Definition slave_zapette.hpp:79
libdar::slave_zapette::action
void action()
main execution method for slave_zapette class
libdar::slave_zapette::out
generic_file * out
where to send requested info or data to
Definition slave_zapette.hpp:77
libdar::slave_zapette::in
generic_file * in
where to read orders from
Definition slave_zapette.hpp:76
libdar::slave_zapette::src
generic_file * src
where to read data from
Definition slave_zapette.hpp:78
libdar::slave_zapette::slave_zapette
slave_zapette(generic_file *input, generic_file *output, generic_file *data)
slave_zapette constructor
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
libdar namespace encapsulate all libdar symbols
Definition archive.hpp:47