class implementing the dar_slave feature
More...
#include <libdar_slave.hpp>
|
| 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
|
|
| 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
|
|
class implementing the dar_slave feature
Definition at line 45 of file dar64-2.7.14-win64/include/dar/libdar_slave.hpp.
◆ libdar_slave() [1/2]
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
- Parameters
-
[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 |
- Note
- if input_pipe is an empty string stdin is used
-
if output_pipe is an empty string stdout is used
◆ libdar_slave() [2/2]
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
- Parameters
-
[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 |
- Note
- if input_pipe is an empty string stdin is used
-
if output_pipe is an empty string stdout is used
◆ run() [1/2]
void libdar::libdar_slave::run |
( |
| ) |
|
enslave this object to the dar process through the created pipes
- Note
- run() will return when dar will no more need of this slave. if you need to abort this run(), let dar abort properly this will do the expected result properly.
◆ run() [2/2]
void libdar::libdar_slave::run |
( |
| ) |
|
enslave this object to the dar process through the created pipes
- Note
- run() will return when dar will no more need of this slave. if you need to abort this run(), let dar abort properly this will do the expected result properly.
◆ pimpl
The documentation for this class was generated from the following files: