Disk ARchive
2.4.2
|
this class manages the header of each slice More...
#include <header.hpp>
Public Member Functions | |
header (const header &ref) | |
struct header & | operator= (const header &ref) |
void | read (user_interaction &ui, generic_file &f, bool lax=false) |
void | write (user_interaction &, generic_file &f) |
void | read (user_interaction &dialog, S_I fd, bool lax=false) |
void | write (user_interaction &dialog, S_I fd) |
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) |
void | set_first_slice_size (const infinint &size) |
void | unset_first_slice_size () |
bool | get_slice_size (infinint &size) |
void | set_slice_size (const infinint &size) |
void | unset_slice_size () |
bool | is_old_header () const |
Static Public Member Functions | |
static U_I | min_size () |
minimal size of a header in an archive |
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. A new fields are easily identified by old implementations, and optional known fields can be recognized after those. This makes the header easier to extend by adding new fields, while letting a chance for the old implementation to use more recent archives the main use of TLV is to handle optional fields easily.
static U_I libdar::header::min_size | ( | ) | [inline, static] |
minimal size of a header in an archive
Definition at line 97 of file header.hpp.