Disk ARchive  2.5.2
Full featured and portable backup and archiving tool
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Public Types | Public Member Functions | Static Public Attributes | Protected Types | Protected Member Functions | Protected Attributes
libdar::cat_file Class Reference

the plain file class More...

#include <cat_file.hpp>

Inherits libdar::cat_inode.

Inherited by libdar::cat_door.

List of all members.

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_fileget_data (get_data_mode mode) const
void clean_data ()
void set_offset (const infinint &r)
const infinintget_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_entreeclone () 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

Detailed Description

the plain file class

Definition at line 45 of file cat_file.hpp.


Member Function Documentation

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

Parameters:
[in]pdescstack to read the data from
Note:
used from cat_entree::read to complete small read
this method is called by cat_entree::read and mirage::post_constructor only when contructing an object with small set to true

Reimplemented from libdar::cat_entree.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines