![]() |
Disk ARchive
2.5.2
Full featured and portable backup and archiving tool
|
the plain file class More...
#include <cat_file.hpp>
Inherits libdar::cat_inode.
Inherited by libdar::cat_door.
Public Types | |
enum | get_data_mode { keep_compressed, keep_hole, normal, plain } |
Public Member Functions | |
cat_file (const infinint &xuid, const infinint &xgid, U_16 xperm, const datetime &last_access, const datetime &last_modif, const datetime &last_change, const std::string &src, const path &che, const infinint &taille, const infinint &fs_device, bool x_furtive_read_mode) | |
cat_file (const cat_file &ref) | |
cat_file (user_interaction &dialog, const pile_descriptor &pdesc, const archive_version &reading_ver, saved_status saved, compression default_algo, bool small) | |
bool | has_changed_since (const cat_inode &ref, const infinint &hourshift, cat_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 |
inherited class signature | |
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 |
cat_entree * | clone () const |
a way to copy the exact type of an object even if pointed to by a parent class pointer | |
compression | get_compression_algo_read () const |
compression | get_compression_algo_write () const |
void | change_compression_algo_write (compression 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 cat_inode &other, bool isolated_mode) const |
void | inherited_dump (const pile_descriptor &pdesc, bool small) const |
inherited class may overload this method but shall first call the parent's inherited_dump() in the overloaded method | |
void | post_constructor (const pile_descriptor &pdesc) |
Protected Attributes | |
enum libdar::cat_file:: { ... } | status |
the plain file class
Definition at line 45 of file cat_file.hpp.
void libdar::cat_file::post_constructor | ( | const pile_descriptor & | pdesc | ) | [protected, virtual] |
let inherited classes build object's data after CRC has been read from file in small read mode
[in] | pdesc | stack to read the data from |
Reimplemented from libdar::cat_entree.