Disk ARchive
2.4.2
|
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 } |
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 |
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 (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) |
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 | |
Protected Attributes | |
enum libdar::file:: { ... } | status |
the plain file class
Definition at line 479 of file catalogue.hpp.
void libdar::file::post_constructor | ( | generic_file & | f | ) | [protected, virtual] |
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.