 |
Disk ARchive
2.6.8
Full featured and portable backup and archiving tool
|
Go to the documentation of this file.
34 #include "../my_config.h"
51 tuyau(
const std::shared_ptr<user_interaction> & dialog,
53 tuyau(
const std::shared_ptr<user_interaction> & dialog,
56 tuyau(
const std::shared_ptr<user_interaction> & dialog,
57 const std::string &filename,
60 tuyau(
const std::shared_ptr<user_interaction> & dialog);
63 tuyau & operator = (
const tuyau & ref) =
default;
64 tuyau & operator = (
tuyau && ref) noexcept =
default;
85 virtual bool skip_relative(
signed int x)
override;
88 bool has_next_to_read();
bool has_one_to_read
if true, the next char to read is placed in "next_to_read"
infinint position
recorded position in the stream
class to be used as parent to provide checkpoints to inherited classes
virtual bool skip(const infinint &pos) override
skip at the absolute position
int other_end_fd
in pipe_both mode, this holds the reading side of the anonymous pipe
gf_mode
generic_file openning modes
switch module to limitint (32 ou 64 bits integers) or infinint
the arbitrary large positive integer class
virtual void inherited_read_ahead(const infinint &amount) override
tells the object that several calls to read() will follow to probably obtain at least the given amoun...
virtual void inherited_terminate() override
destructor-like call, except that it is allowed to throw exceptions
int filedesc
file descriptors of the pipe
pipe implementation under the generic_file interface.
class mem_ui to keep a copy of a user_interaction object
to be able to cancel libdar operation while running in a given thread.
class generic_file is defined here as well as class fichier
bool read_and_drop(infinint byte)
skip forward by reading data
virtual infinint get_position() const override
get the current read/write position
void close_read_fd()
closes the read fd of the anonymous pipe (this is to be used by a writer)
this is the interface class from which all other data transfer classes inherit
virtual void inherited_write(const char *a, U_I size) override
implementation of the write() operation
virtual void inherited_flush_read() override
reset internal engine, flush caches in order to read the data at current position
enum libdar::tuyau::@4 pipe_mode
defines how the object's status (which possible values defined by the anonymous enum above)
std::string chemin
in pipe_path mode only, this holds the named pipe to be open
virtual U_I inherited_read(char *a, U_I size) override
implementation of read() operation
holds a filename to be openned (named pipe)
char next_to_read
when has_one_to_read is true, contains the next to read byte
virtual void inherited_sync_write() override
write down any pending data
holds a pair of file descriptors
void do_not_close_read_fd()
ask to not close the read descriptor upon object destruction (the fd survives the object)
virtual bool skip_to_eof() override
skip to the end of file
virtual bool skippable(skippability direction, const infinint &amount) override
whether the implementation is able to skip
holds a single file descriptor for the pipe
bool read_to_eof()
skip to eof by reading data
class mem_ui definition. This class is to be used as parent class to handle user_interaction object m...
libdar namespace encapsulate all libdar symbols