![]() |
Disk ARchive
2.5.10
Full featured and portable backup and archiving tool
|
the root class from all other inherite for any entry in the catalogue More...
#include <cat_entree.hpp>
Inherits libdar::on_pool.
Inherited by libdar::cat_eod, and libdar::cat_nomme.
Public Member Functions | |
cat_entree (const smart_pointer< pile_descriptor > &pdesc, bool small) | |
cat_entree () | |
setup an object when read from filesystem | |
virtual | ~cat_entree () throw (Ebug) |
destructor | |
virtual bool | operator== (const cat_entree &ref) const |
returns true if the two object have the same content | |
bool | operator!= (const cat_entree &ref) const |
void | dump (const pile_descriptor &pdesc, bool small) const |
void | specific_dump (const pile_descriptor &pdesc, bool small) const |
virtual void | post_constructor (const pile_descriptor &pdesc) |
virtual unsigned char | signature () const =0 |
inherited class signature | |
virtual cat_entree * | clone () const =0 |
a way to copy the exact type of an object even if pointed to by a parent class pointer | |
virtual void | change_location (const smart_pointer< pile_descriptor > &pdesc) |
![]() | |
void * | operator new (size_t n_byte) |
void * | operator new (size_t n_byte, const std::nothrow_t ¬hrow_value) |
void * | operator new[] (size_t n_byte) |
void * | operator new[] (size_t n_byte, const std::nothrow_t ¬hrow_value) |
void * | operator new (size_t n_byte, memory_pool *p) |
void * | operator new[] (size_t n_byte, memory_pool *p) |
void | operator delete (void *ptr, memory_pool *p) |
this operator is called by the compiler if an exception is throw from the constructor of the allocated object | |
void | operator delete[] (void *ptr, memory_pool *p) |
this operator is called by the compiler if an exception is throw from the constructor of the allocated objects | |
void | operator delete (void *ptr) |
this is the usual delete operator, modified to handle allocated objects allocated on a memory pool or not | |
void | operator delete[] (void *ptr) |
this is the usual delete[] operator, modified to handle allocated objects allocated on a memory pool or not | |
Static Public Member Functions | |
static cat_entree * | read (user_interaction &dialog, memory_pool *pool, const smart_pointer< pile_descriptor > &f, const archive_version &reading_ver, entree_stats &stats, std::map< infinint, cat_etoile * > &corres, compression default_algo, bool lax, bool only_detruit, bool small) |
Protected Member Functions | |
virtual 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 | |
pile * | get_pile () const |
stack used to read object from (nullptr is returned for object created from filesystem) | |
compressor * | get_compressor_layer () const |
escape * | get_escape_layer () const |
generic_file * | get_read_cat_layer (bool small) const |
return the adhoc layer in the stack to read from the catalogue objects (except the EA, FSA or Data part) | |
![]() | |
memory_pool * | get_pool () const |
template<class T > | |
void | meta_new (T *&ptr, size_t num) |
template<class T > | |
void | meta_delete (T *ptr) |
the root class from all other inherite for any entry in the catalogue
Definition at line 85 of file cat_entree.hpp.
libdar::cat_entree::cat_entree | ( | const smart_pointer< pile_descriptor > & | pdesc, |
bool | small | ||
) |
setup an object when read from an archive
[in] | pdesc | points to an existing stack that will be read from to setup fields of inherited classes, this pointed to pile object must survive the whole life of the cat_entree object |
[in] | small | whether a small or a whole read is to be read, (inode has been dump() with small set to true) |
|
virtual |
for archive merging, will let the object drop EA, FSA and Data to an alternate stack than the one it has been read from
Reimplemented in libdar::cat_directory, and libdar::cat_mirage.
Referenced by libdar::cat_mirage::change_location().
void libdar::cat_entree::dump | ( | const pile_descriptor & | pdesc, |
bool | small | ||
) | const |
write down the object information to a stack
[in,out] | pdesc | is the stack where to write the data to |
[in] | small | defines whether to do a small or normal dump |
|
inlineprotected |
compressor generic_file relative methods
Definition at line 180 of file cat_entree.hpp.
References libdar::smart_pointer< T >::is_null().
|
inlineprotected |
escape generic_file relative methods
Definition at line 187 of file cat_entree.hpp.
References libdar::smart_pointer< T >::is_null().
|
inlinevirtual |
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 in libdar::cat_file, and libdar::cat_mirage.
Definition at line 149 of file cat_entree.hpp.
|
static |
read and create an object of inherited class of class cat_entree
[in] | dialog | for user interaction |
[in] | pool | for memory allocation (nullptr if special_alloc not activated) |
[in] | f | where from to read data in order to create the object |
[in] | reading_ver | archive version format to use for reading |
[in,out] | stats | updated statistical fields |
[in,out] | corres | used to setup hard links |
[in] | default_algo | default compression algorithm |
[in] | lax | whether to use relax mode |
[in] | only_detruit | whether to only consider detruit objects (in addition to the directory tree) |
[in] | small | whether the dump() to read has been done with the small argument set |
|
inline |
this call gives an access to inherited_dump
[in,out] | pdesc | is the stack where to write the data to |
[in] | small | defines whether to do a small or normal dump |
Definition at line 142 of file cat_entree.hpp.
References inherited_dump().