Loading...
Searching...
No Matches
libdar_slave.hpp
Go to the documentation of this file.
/*********************************************************************/
// dar - disk archive - a backup/restoration program
// Copyright (C) 2002-2026 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 LIBDAR_SLAVE_HPP
#define LIBDAR_SLAVE_HPP
#include "../my_config.h"
#include <memory>
#include "infinint.hpp"
#include "user_interaction.hpp"
namespace libdar
{
class libdar_slave
{
public:
libdar_slave(std::shared_ptr<user_interaction> & dialog,
const std::string & folder,
const std::string & basename,
const std::string & extension,
bool input_pipe_is_fd,
const std::string & input_pipe,
bool output_pipe_is_fd,
const std::string & output_pipe,
const std::string & execute,
const infinint & min_digits);
libdar_slave(const libdar_slave & ref) = delete;
libdar_slave(libdar_slave && ref) noexcept = default;
libdar_slave & operator = (const libdar_slave & ref) = delete;
libdar_slave & operator = (libdar_slave && ref) noexcept = default;
~libdar_slave();
void run();
private:
class i_libdar_slave;
std::unique_ptr<i_libdar_slave> pimpl;
};
} // end of namespace
#endif
libdar::infinint
the arbitrary large positive integer class
Definition real_infinint.hpp:62
libdar::libdar_slave::run
void run()
enslave this object to the dar process through the created pipes
libdar::libdar_slave::libdar_slave
libdar_slave(std::shared_ptr< user_interaction > &dialog, const std::string &folder, const std::string &basename, const std::string &extension, bool input_pipe_is_fd, const std::string &input_pipe, bool output_pipe_is_fd, const std::string &output_pipe, const std::string &execute, const infinint &min_digits)
libdar_slave constructor
infinint.hpp
switch module to limitint (32 ou 64 bits integers) or infinint
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
user_interaction.hpp
defines the interaction interface between libdar and users.