Disk ARchive 2.4.2
Public Types | Public Member Functions | Static Public Attributes | Protected Types | Protected Member Functions | Protected Attributes
libdar::file Class Reference

the plain file class More...

#include <catalogue.hpp>

Inherits libdar::inode.

Inherited by libdar::door.

List of all members.

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

Detailed Description

the plain file class

Definition at line 479 of file catalogue.hpp.


Member Function Documentation

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

Parameters:
[in,out]fis the file where to write the data to
Note:
only used when an non NULL escape pointer is given to entree::read (reading a small dump).

Reimplemented from libdar::entree.


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