![]() |
Disk ARchive 2.7.18
Full featured and portable backup and archiving tool
|
class implementing the dar_slave feature More...
#include <libdar_slave.hpp>
Public Member Functions | |
| 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 | |
| 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 |
| void | run () |
| enslave this object to the dar process through the created pipes | |
Private Attributes | |
| std::unique_ptr< i_libdar_slave > | pimpl |
class implementing the dar_slave feature
Definition at line 45 of file libdar_slave.hpp.
| libdar::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
| [in] | dialog | for user interaction. Can be set to nullptr |
| [in] | folder | is the directory where resides the backup to read |
| [in] | basename | is the backup basename |
| [in] | extension | should be set to "dar" |
| [in] | input_pipe_is_fd | if true the input_pipe argument is expected to be an integer (a file descriptor open for reading) |
| [in] | input_pipe | is the name of the pipe order will come from or a filedescriptor if input_pipe_is_fd is true |
| [in] | output_pipe_is_fd | if true the output_pipe argument is expected to be an integer (a file descriptor open for writing) |
| [in] | output_pipe | is the name of the pipe to send data to dar or a filedescriptor depending on output_pipe_is_fd value |
| [in] | execute | is a command to execute before reading a new slice, same macro substition is available as libdar::archive::set_execute() |
| [in] | min_digits | minimum digits used to create the archive. Set it to zero if this option was not used at archive creation time |
| void libdar::libdar_slave::run | ( | ) |
|
private |
Definition at line 92 of file libdar_slave.hpp.