36 #include "../my_config.h"
74 virtual bool skippable(skippability direction,
const infinint & amount)
override {
return true; };
the contextual class adds the information of phases in the generic_file
this is the interface class from which all other data transfer classes inherit
bool is_terminated() const
the arbitrary large positive integer class
manage label data structure used in archive slice headers
class mem_ui to keep a copy of a user_interaction object
zapette emulate a file that is remotely controlled by slave_zapette
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...
zapette(const std::shared_ptr< user_interaction > &dialog, generic_file *input, generic_file *output, bool by_the_end)
zapette constructor
infinint get_first_slice_header_size() const
void make_transfert(U_16 size, const infinint &offset, char *data, const std::string &info, S_I &lu, infinint &arg) const
wrapped formatted method to communicate with the slave_zapette located behind the pair of pipes (= tu...
virtual U_I inherited_read(char *a, U_I size) override
implementation of read() operation
virtual bool skip_relative(S_I x) override
skip relatively to the current position
virtual bool truncatable(const infinint &pos) const override
whether the implementation is able to truncate to the given position
virtual bool is_an_old_start_end_archive() const override
returns whether the archive is a old archive (format < 8)
virtual void inherited_terminate() override
destructor-like call, except that it is allowed to throw exceptions
virtual void inherited_flush_read() override
reset internal engine, flush caches in order to read the data at current position
virtual void inherited_sync_write() override
write down any pending data
virtual void inherited_write(const char *a, U_I size) override
implementation of the write() operation
virtual const label & get_data_name() const override
obtain the data_name of the archive (label associated with the archive's data)
virtual bool skip(const infinint &pos) override
skip at the absolute position
virtual void set_info_status(const std::string &s) override
defines the new contextual value
virtual bool skippable(skippability direction, const infinint &amount) override
whether the implementation is able to skip
virtual bool skip_to_eof() override
skip to the end of file
virtual void inherited_truncate(const infinint &pos) override
truncate file at the give offset
infinint get_non_first_slice_header_size() const
virtual infinint get_position() const override
get the current read/write position
class contextual adds the information of phases in the generic_file
class generic_file is defined here as well as class fichier
switch module to limitint (32 ou 64 bits integers) or infinint
are defined here basic integer types that tend to be portable
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