|
Disk ARchive
2.4.12
|
makes a segment of a generic_file appear like a real generic_file More...
#include <tronc.hpp>
Inherits libdar::generic_file.
Inherited by libdar::trontextual.
Public Member Functions | |
| tronc (generic_file *f, const infinint &offset, const infinint &size, bool own_f=false) | |
| constructor | |
| tronc (generic_file *f, const infinint &offset, const infinint &size, gf_mode mode, bool own_f=false) | |
| tronc (generic_file *f, const infinint &offset, bool own_f=false) | |
| tronc (generic_file *f, const infinint &offset, gf_mode mode, bool own_f=false) | |
| ~tronc () | |
| destructor | |
| bool | skip (const infinint &pos) |
| inherited from generic_file | |
| bool | skip_to_eof () |
| inherited from generic_file | |
| bool | skip_relative (S_I x) |
| inherited from generic_file | |
| infinint | get_position () |
| inherited from generic_file | |
Protected Member Functions | |
| U_I | inherited_read (char *a, U_I size) |
| inherited from generic_file | |
| void | inherited_write (const char *a, U_I size) |
| inherited from generic_file | |
| void | inherited_sync_write () |
| write down any pending data | |
| void | inherited_terminate () |
| destructor-like call, except that it is allowed to throw exceptions | |
makes a segment of a generic_file appear like a real generic_file
| libdar::tronc::tronc | ( | generic_file * | f, |
| const infinint & | offset, | ||
| const infinint & | size, | ||
| bool | own_f = false |
||
| ) |
constructor
| f | is the file to take the segment from |
| offset | is the position of the beginning of the segment |
| size | is the size of the segment |
| own_f | is true if this object has to owns and may destroy the 'f' object at tronc's destruction time |
| libdar::tronc::tronc | ( | generic_file * | f, |
| const infinint & | offset, | ||
| bool | own_f = false |
||
| ) |
other constructor, the end of the segment is the end of the underlying generic_file only data before offset is inaccessible
| void libdar::tronc::inherited_sync_write | ( | ) | [inline, protected, virtual] |
write down any pending data
Implements libdar::generic_file.
Definition at line 84 of file tronc.hpp.
References libdar::generic_file::sync_write().
| void libdar::tronc::inherited_terminate | ( | ) | [inline, protected, virtual] |
destructor-like call, except that it is allowed to throw exceptions
Implements libdar::generic_file.
Definition at line 85 of file tronc.hpp.
References libdar::generic_file::terminate().
1.7.6.1