|
Disk ARchive
2.4.12
|
pipe implementation under the generic_file interface. More...
#include <tuyau.hpp>
Inherits libdar::generic_file, libdar::thread_cancellation, and libdar::mem_ui.
Public Member Functions | |
| tuyau (user_interaction &dialog, int fd) | |
| tuyau (user_interaction &dialog, int fd, gf_mode mode) | |
| tuyau (user_interaction &dialog, const std::string &filename, gf_mode mode) | |
| tuyau (user_interaction &dialog) | |
| int | get_read_fd () const |
| void | close_read_fd () |
| closes the read fd of the anonymous pipe (this is to be used by a writer) | |
| void | do_not_close_read_fd () |
| ask to not close the read descriptor upon object destruction (the fd survives the object) | |
| bool | skip (const infinint &pos) |
| skip at the absolute position | |
| bool | skip_to_eof () |
| skip to the end of file | |
| bool | skip_relative (signed int x) |
| infinint | get_position () |
| get the current read/write position | |
| bool | has_next_to_read () |
Protected Member Functions | |
| virtual U_I | inherited_read (char *a, U_I size) |
| implementation of read() operation | |
| virtual void | inherited_write (const char *a, U_I size) |
| implementation of the write() operation | |
| void | inherited_sync_write () |
| write down any pending data | |
| void | inherited_terminate () |
| destructor-like call, except that it is allowed to throw exceptions | |
pipe implementation under the generic_file interface.
| void libdar::tuyau::close_read_fd | ( | ) |
closes the read fd of the anonymous pipe (this is to be used by a writer)
| virtual U_I libdar::tuyau::inherited_read | ( | char * | a, |
| U_I | size | ||
| ) | [protected, virtual] |
implementation of read() operation
| [in,out] | a | where to put the data to read |
| [in] | size | says how much data to read |
Implements libdar::generic_file.
| void libdar::tuyau::inherited_sync_write | ( | ) | [inline, protected, virtual] |
write down any pending data
Implements libdar::generic_file.
| void libdar::tuyau::inherited_terminate | ( | ) | [protected, virtual] |
destructor-like call, except that it is allowed to throw exceptions
Implements libdar::generic_file.
| virtual void libdar::tuyau::inherited_write | ( | const char * | a, |
| U_I | size | ||
| ) | [protected, virtual] |
implementation of the write() operation
| [in] | a | what data to write |
| [in] | size | amount of data to write |
Implements libdar::generic_file.
| bool libdar::tuyau::skip | ( | const infinint & | pos | ) | [virtual] |
skip at the absolute position
| [in] | pos | the offset in byte where next read/write operation must start |
Implements libdar::generic_file.
1.7.6.1