![]() |
Disk ARchive
2.5.7
Full featured and portable backup and archiving tool
|
this class manages the header of each slice More...
#include <header.hpp>
Inherits libdar::on_pool.
Public Member Functions | |
header (const header &ref) | |
const header & | operator= (const header &ref) |
void | read (user_interaction &ui, generic_file &f, bool lax=false) |
void | write (user_interaction &, generic_file &f) const |
magic_number & | get_set_magic () |
label & | get_set_internal_name () |
char & | get_set_flag () |
label & | get_set_data_name () |
bool | get_first_slice_size (infinint &size) const |
void | set_first_slice_size (const infinint &size) |
void | unset_first_slice_size () |
bool | get_slice_size (infinint &size) const |
void | set_slice_size (const infinint &size) |
void | unset_slice_size () |
bool | is_old_header () const |
void | set_format_07_compatibility () |
![]() | |
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 U_I | min_size () |
minimal size of a header in an archive More... | |
Additional Inherited Members | |
![]() | |
memory_pool * | get_pool () const |
template<class T > | |
void | meta_new (T *&ptr, size_t num) |
template<class T > | |
void | meta_delete (T *ptr) |
this class manages the header of each slice
this class was a struct before release 2.4.0, now promoted to a class it hides the fields and uses TLV to store the fields in the archive. This makes the header easier to extend by adding new fields, while letting a chance for the old implementation to be able to use more recent archives the main use of TLV is to handle optional fields easily.
Definition at line 68 of file header.hpp.
|
inlinestatic |
minimal size of a header in an archive
Definition at line 92 of file header.hpp.