Disk ARchive
2.4.8
|
the plain file class More...
#include <catalogue.hpp>
Inherits libdar::inode.
Inherited by libdar::door.
Public Types | |
enum | get_data_mode { keep_compressed, keep_hole, normal, plain } |
![]() | |
enum | comparison_fields { cf_all, cf_ignore_owner, cf_mtime, cf_inode_type } |
flag used to only consider certain fields when comparing/restoring inodes | |
enum | ea_status { ea_none, ea_partial, ea_fake, ea_full, ea_removed } |
Public Member Functions | |
file (const infinint &xuid, const infinint &xgid, U_16 xperm, const infinint &last_access, const infinint &last_modif, const infinint &last_change, const std::string &src, const path &che, const infinint &taille, const infinint &fs_device, bool x_furtive_read_mode) | |
file (const file &ref) | |
file (user_interaction &dialog, generic_file &f, const archive_version &reading_ver, saved_status saved, compression default_algo, generic_file *data_loc, generic_file *ea_loc, escape *ptr) | |
bool | has_changed_since (const inode &ref, const infinint &hourshift, inode::comparison_fields what_to_check) const |
infinint | get_size () const |
void | change_size (const infinint &s) const |
infinint | get_storage_size () const |
void | set_storage_size (const infinint &s) |
virtual generic_file * | get_data (get_data_mode mode) const |
void | clean_data () |
void | set_offset (const infinint &r) |
const infinint & | get_offset () const |
unsigned char | signature () const |
void | set_crc (const crc &c) |
bool | get_crc (const crc *&c) const |
bool | has_crc () const |
bool | get_crc_size (infinint &val) const |
void | drop_crc () |
void | set_sparse_file_detection_read (bool val) |
void | set_sparse_file_detection_write (bool val) |
bool | get_sparse_file_detection_read () const |
bool | get_sparse_file_detection_write () const |
entree * | clone () const |
compression | get_compression_algo_read () const |
compression | get_compression_algo_write () const |
void | change_compression_algo_write (compression x) |
void | change_location (generic_file *x) |
bool | is_dirty () const |
void | set_dirty (bool value) |
![]() | |
inode (const infinint &xuid, const infinint &xgid, U_16 xperm, const infinint &last_access, const infinint &last_modif, const infinint &last_change, const std::string &xname, const infinint &device) | |
inode (user_interaction &dialog, generic_file &f, const archive_version &reading_ver, saved_status saved, generic_file *ea_loc, escape *ptr) | |
inode (const inode &ref) | |
const inode & | operator= (const inode &ref) |
const infinint & | get_uid () const |
const infinint & | get_gid () const |
U_16 | get_perm () const |
infinint | get_last_access () const |
infinint | get_last_modif () const |
void | set_last_access (const infinint &x_time) |
void | set_last_modif (const infinint &x_time) |
saved_status | get_saved_status () const |
void | set_saved_status (saved_status x) |
infinint | get_device () const |
bool | same_as (const inode &ref) const |
bool | is_more_recent_than (const inode &ref, const infinint &hourshift) const |
void | compare (const inode &other, const mask &ea_mask, comparison_fields what_to_check, const infinint &hourshift, bool symlink_date) const |
void | ea_set_saved_status (ea_status status) |
ea_status | ea_get_saved_status () const |
void | ea_attach (ea_attributs *ref) |
const ea_attributs * | get_ea () const |
void | ea_detach () const |
infinint | ea_get_size () const |
void | ea_set_offset (const infinint &pos) |
void | ea_set_crc (const crc &val) |
void | ea_get_crc (const crc *&ptr) const |
bool | ea_get_crc_size (infinint &val) const |
infinint | get_last_change () const |
void | set_last_change (const infinint &x_time) |
bool | has_last_change () const |
void | change_ea_location (generic_file *loc) |
![]() | |
nomme (const std::string &name) | |
nomme (generic_file &f) | |
virtual bool | operator== (const nomme &ref) const |
virtual bool | operator< (const nomme &ref) const |
const std::string & | get_name () const |
void | change_name (const std::string &x) |
bool | same_as (const nomme &ref) const |
![]() | |
void | dump (generic_file &f, bool small) const |
write down the object information to a generic_file More... | |
void | specific_dump (generic_file &f, bool small) const |
this call gives an access to inherited_dump More... | |
Static Public Attributes | |
static const U_8 | FILE_DATA_WITH_HOLE = 0x01 |
static const U_8 | FILE_DATA_IS_DIRTY = 0x02 |
Protected Types | |
enum | { empty, from_path, from_cat } |
Protected Member Functions | |
void | sub_compare (const inode &other) const |
void | inherited_dump (generic_file &f, bool small) const |
void | post_constructor (generic_file &f) |
called by entree::read and mirage::post_constructor, let inherited classes builds object's data after CRC has been read from file More... | |
![]() | |
escape * | get_escape_layer () const |
escape generic_file relative methods | |
Protected Attributes | |
enum libdar::file:: { ... } | status |
Additional Inherited Members | |
![]() | |
static entree * | read (user_interaction &dialog, generic_file &f, const archive_version &reading_ver, entree_stats &stats, std::map< infinint, etoile * > &corres, compression default_algo, generic_file *data_loc, generic_file *ea_loc, bool lax, bool only_detruit, escape *ptr) |
the plain file class
Definition at line 479 of file catalogue.hpp.
|
protectedvirtual |
called by entree::read and mirage::post_constructor, let inherited classes builds object's data after CRC has been read from file
[in,out] | f | is the file where to write the data to |
Reimplemented from libdar::entree.