Disk ARchive 2.7.16
Full featured and portable backup and archiving tool
|
#include <list_entry.hpp>
Public Member Functions | |
list_entry (const list_entry &ref)=default | |
list_entry (list_entry &&ref)=default | |
list_entry & | operator= (const list_entry &ref)=default |
list_entry & | operator= (list_entry &&ref) noexcept=default |
bool | is_eod () const |
method used to know whether the returned entry signals a End of Directory More... | |
const std::string & | get_name () const |
unsigned char | get_type () const |
bool | is_dir () const |
bool | is_file () const |
bool | is_symlink () const |
bool | is_char_device () const |
bool | is_block_device () const |
bool | is_unix_socket () const |
bool | is_named_pipe () const |
bool | is_hard_linked () const |
bool | is_removed_entry () const |
bool | is_door_inode () const |
bool | is_empty_dir () const |
unsigned char | get_removed_type () const |
valid only for removed_entries | |
bool | has_data_present_in_the_archive () const |
std::string | get_data_flag () const |
saved_status | get_data_status () const |
bool | has_EA () const |
bool | has_EA_saved_in_the_archive () const |
std::string | get_ea_flag () const |
ea_saved_status | get_ea_status () const |
bool | has_FSA () const |
bool | has_FSA_saved_in_the_archive () const |
std::string | get_fsa_flag () const |
std::string | get_uid (bool try_resolving_name=false) const |
std::string | get_gid (bool try_resolving_name=false) const |
std::string | get_perm () const |
std::string | get_last_access () const |
std::string | get_last_modif () const |
std::string | get_last_change () const |
std::string | get_removal_date () const |
for removed_entry only | |
time_t | get_last_access_s () const |
time_t | get_last_modif_s () const |
time_t | get_last_change_s () const |
time_t | get_removal_date_s () const |
for removed_entry only | |
void | get_last_access (datetime::time_unit tu, time_t &second, time_t &fraction) const |
yet an alternative method to get last access time More... | |
void | get_last_modif (datetime::time_unit tu, time_t &second, time_t &fraction) const |
yet an alternative method to get the last modification date (see get_last_access() for details) More... | |
void | get_last_change (datetime::time_unit tu, time_t &second, time_t &fraction) const |
yet an alternative method to get the last change date (see get_last_access() for details) More... | |
std::string | get_file_size (bool size_in_bytes=true) const |
std::string | get_compression_ratio () const |
std::string | get_compression_ratio_flag () const |
bool | is_sparse () const |
std::string | get_sparse_flag () const |
std::string | get_compression_algo () const |
bool | is_dirty () const |
std::string | get_link_target () const |
std::string | get_major () const |
std::string | get_minor () const |
const range & | get_slices () const |
provides slice information More... | |
bool | has_delta_signature () const |
std::string | get_delta_flag () const |
bool | get_archive_offset_for_data (infinint &val) const |
offset in byte where to find first byte of data More... | |
bool | get_archive_offset_for_data (U_64 &val) const |
std::string | get_archive_offset_for_data () const |
bool | get_storage_size_for_data (infinint &val) const |
amount of byte used to store the file's data More... | |
bool | get_storage_size_for_data (U_64 &val) const |
std::string | get_storage_size_for_data (bool size_in_bytes=true) const |
bool | get_archive_offset_for_EA (infinint &val) const |
offset in byte whert to find the first byte of Extended Attributes More... | |
bool | get_archive_offset_for_EA (U_64 &val) const |
std::string | get_archive_offset_for_EA () const |
bool | get_storage_size_for_EA (infinint &val) const |
amount of byte used to store the file's EA More... | |
bool | get_storage_size_for_EA (U_64 &val) const |
std::string | get_storage_size_for_EA () const |
bool | get_archive_offset_for_FSA (infinint &val) const |
offset in byte where to find the first byte of Filesystem Specific Attributes More... | |
bool | get_archive_offset_for_FSA (U_64 &val) const |
std::string | get_archive_offset_for_FSA () const |
bool | get_storage_size_for_FSA (infinint &val) const |
amount of byte used to store the file's FSA More... | |
bool | get_storage_size_for_FSA (U_64 &val) const |
std::string | get_storage_size_for_FSA () const |
void | get_ea_reset_read () const |
reset the reading of Extended Attributes names More... | |
bool | get_ea_read_next (std::string &key) const |
read the next Extended Attribute name More... | |
std::string | get_etiquette () const |
fsa_scope | get_fsa_scope () const |
this is the hard-link ID, only valid for hard linked entries More... | |
std::string | get_data_crc () const |
std::string | get_delta_patch_base_crc () const |
std::string | get_delta_patch_result_crc () const |
void | set_name (const std::string &val) |
void | set_type (unsigned char val) |
void | set_removed_type (unsigned char val) |
void | set_hard_link (bool val) |
void | set_uid (const infinint &val) |
void | set_gid (const infinint &val) |
void | set_perm (U_16 val) |
void | set_last_access (const datetime &val) |
void | set_last_modif (const datetime &val) |
void | set_removal_date (const datetime &val) |
void | set_saved_status (saved_status val) |
void | set_ea_status (ea_saved_status val) |
void | set_last_change (const datetime &val) |
void | set_fsa_status (fsa_saved_status val) |
void | set_file_size (const infinint &val) |
void | set_is_sparse_file (bool val) |
void | set_compression_algo (compression val) |
void | set_dirtiness (bool val) |
void | set_link_target (const std::string &val) |
void | set_major (int val) |
void | set_minor (int val) |
void | set_slices (const range &sl) |
void | set_delta_sig (bool val) |
void | set_archive_offset_for_data (const infinint &val) |
void | set_storage_size_for_data (const infinint &val) |
void | set_archive_offset_for_EA (const infinint &val) |
void | set_storage_size_for_EA (const infinint &val) |
void | set_archive_offset_for_FSA (const infinint &val) |
void | set_storage_size_for_FSA (const infinint &val) |
void | set_ea (const ea_attributs &arg) |
void | set_etiquette (const infinint &arg) |
void | set_fsa_scope (const fsa_scope &arg) |
void | set_data_crc (const crc &ptr) |
void | set_delta_patch_base_crc (const crc &ptr) |
void | set_delta_patch_result_crc (const crc &ptr) |
void | set_empty_dir (bool val) |
void | clear () |
Static Private Member Functions | |
static time_t | datetime2time_t (const datetime &val) |
Private Attributes | |
std::string | my_name |
bool | hard_link |
unsigned char | type |
infinint | uid |
infinint | gid |
U_16 | perm |
datetime | last_access |
datetime | last_modif |
also used to store removal_date for removed entries More... | |
saved_status | data_status |
ea_saved_status | ea_status |
datetime | last_change |
fsa_saved_status | fsa_status |
fsa_scope | fsa_sc |
infinint | file_size |
bool | sparse_file |
compression | compression_algo |
bool | dirty |
std::string | target |
target[0] used to store signature of removed entry for removed entries More... | |
int | major |
int | minor |
range | slices |
bool | delta_sig |
infinint | offset_for_data |
infinint | storage_size_for_data |
infinint | offset_for_EA |
infinint | storage_size_for_EA |
infinint | offset_for_FSA |
infinint | storage_size_for_FSA |
std::deque< std::string > | ea |
std::deque< std::string >::const_iterator | it_ea |
infinint | etiquette |
hard link identification More... | |
std::string | data_crc |
std::string | patch_base_crc |
std::string | patch_result_crc |
bool | empty_dir |
the list_entry class provides mean to get information about a particular entry in the archive
it provides methods for libdar to fill up such object and methods for API user to read the information. Each information uses its own method, thus it will require several call to different method to get the full description of the object. This has the advantage to let the possiblity to add new fields in the future without breaking anything in API, and in consequences in user programs.
Definition at line 59 of file list_entry.hpp.
|
inline |
Definition at line 62 of file list_entry.hpp.
|
inline |
Definition at line 170 of file list_entry.hpp.
|
inline |
offset in byte where to find first byte of data
Definition at line 168 of file list_entry.hpp.
References libdar::infinint::is_zero().
|
inline |
Definition at line 187 of file list_entry.hpp.
|
inline |
offset in byte whert to find the first byte of Extended Attributes
Definition at line 185 of file list_entry.hpp.
References libdar::infinint::is_zero().
|
inline |
Definition at line 201 of file list_entry.hpp.
|
inline |
offset in byte where to find the first byte of Filesystem Specific Attributes
Definition at line 199 of file list_entry.hpp.
References libdar::infinint::is_zero().
|
inline |
Definition at line 141 of file list_entry.hpp.
|
inline |
Definition at line 226 of file list_entry.hpp.
|
inline |
Definition at line 97 of file list_entry.hpp.
|
inline |
Definition at line 227 of file list_entry.hpp.
|
inline |
Definition at line 228 of file list_entry.hpp.
bool libdar::list_entry::get_ea_read_next | ( | std::string & | key | ) | const |
read the next Extended Attribute name
[out] | key | is set to the EA name |
|
inline |
reset the reading of Extended Attributes names
Definition at line 211 of file list_entry.hpp.
|
inline |
Definition at line 102 of file list_entry.hpp.
|
inline |
Definition at line 222 of file list_entry.hpp.
|
inline |
this is the hard-link ID, only valid for hard linked entries
Definition at line 224 of file list_entry.hpp.
|
inline |
yet an alternative method to get last access time
[in] | tu | time unit to be used to store fraction (libdar::datetime::tu_microsecond, libdar::datetime::tu_nanosecond,...) |
[out] | second | integer number of second |
[out] | fraction | remaining part of the time (expressed as tu unit) to be added to "second" to get the exact time |
Definition at line 125 of file list_entry.hpp.
References libdar::datetime::get_value().
|
inline |
Definition at line 115 of file list_entry.hpp.
|
inline |
yet an alternative method to get the last change date (see get_last_access() for details)
Definition at line 133 of file list_entry.hpp.
References libdar::datetime::get_value().
|
inline |
Definition at line 117 of file list_entry.hpp.
|
inline |
yet an alternative method to get the last modification date (see get_last_access() for details)
Definition at line 129 of file list_entry.hpp.
References libdar::datetime::get_value(), and last_modif.
|
inline |
Definition at line 143 of file list_entry.hpp.
|
inline |
Definition at line 79 of file list_entry.hpp.
|
inline |
provides slice information
Definition at line 152 of file list_entry.hpp.
|
inline |
Definition at line 140 of file list_entry.hpp.
|
inline |
amount of byte used to store the file's data
Definition at line 176 of file list_entry.hpp.
References libdar::infinint::is_zero().
|
inline |
Definition at line 192 of file list_entry.hpp.
|
inline |
amount of byte used to store the file's EA
Definition at line 190 of file list_entry.hpp.
References libdar::infinint::is_zero().
|
inline |
Definition at line 206 of file list_entry.hpp.
|
inline |
amount of byte used to store the file's FSA
Definition at line 204 of file list_entry.hpp.
References libdar::infinint::is_zero().
|
inline |
Definition at line 80 of file list_entry.hpp.
|
inline |
Definition at line 95 of file list_entry.hpp.
|
inline |
Definition at line 153 of file list_entry.hpp.
|
inline |
Definition at line 99 of file list_entry.hpp.
|
inline |
Definition at line 100 of file list_entry.hpp.
|
inline |
Definition at line 104 of file list_entry.hpp.
|
inline |
Definition at line 105 of file list_entry.hpp.
|
inline |
Definition at line 85 of file list_entry.hpp.
|
inline |
Definition at line 84 of file list_entry.hpp.
|
inline |
Definition at line 81 of file list_entry.hpp.
|
inline |
Definition at line 142 of file list_entry.hpp.
|
inline |
Definition at line 90 of file list_entry.hpp.
|
inline |
Definition at line 91 of file list_entry.hpp.
|
inline |
method used to know whether the returned entry signals a End of Directory
Definition at line 74 of file list_entry.hpp.
|
inline |
Definition at line 82 of file list_entry.hpp.
|
inline |
Definition at line 88 of file list_entry.hpp.
|
inline |
Definition at line 87 of file list_entry.hpp.
|
inline |
Definition at line 89 of file list_entry.hpp.
|
inline |
Definition at line 139 of file list_entry.hpp.
|
inline |
Definition at line 83 of file list_entry.hpp.
|
inline |
Definition at line 86 of file list_entry.hpp.
|
inline |
Definition at line 255 of file list_entry.hpp.
|
inline |
Definition at line 257 of file list_entry.hpp.
|
inline |
Definition at line 259 of file list_entry.hpp.
|
inline |
Definition at line 248 of file list_entry.hpp.
|
inline |
Definition at line 254 of file list_entry.hpp.
|
inline |
Definition at line 249 of file list_entry.hpp.
|
inline |
Definition at line 243 of file list_entry.hpp.
|
inline |
Definition at line 267 of file list_entry.hpp.
|
inline |
Definition at line 262 of file list_entry.hpp.
|
inline |
Definition at line 246 of file list_entry.hpp.
|
inline |
Definition at line 263 of file list_entry.hpp.
|
inline |
Definition at line 245 of file list_entry.hpp.
|
inline |
Definition at line 237 of file list_entry.hpp.
|
inline |
Definition at line 235 of file list_entry.hpp.
|
inline |
Definition at line 247 of file list_entry.hpp.
|
inline |
Definition at line 239 of file list_entry.hpp.
|
inline |
Definition at line 244 of file list_entry.hpp.
|
inline |
Definition at line 240 of file list_entry.hpp.
|
inline |
Definition at line 250 of file list_entry.hpp.
|
inline |
Definition at line 251 of file list_entry.hpp.
|
inline |
Definition at line 252 of file list_entry.hpp.
|
inline |
Definition at line 232 of file list_entry.hpp.
|
inline |
Definition at line 238 of file list_entry.hpp.
|
inline |
Definition at line 242 of file list_entry.hpp.
|
inline |
Definition at line 253 of file list_entry.hpp.
|
inline |
Definition at line 256 of file list_entry.hpp.
|
inline |
Definition at line 258 of file list_entry.hpp.
|
inline |
Definition at line 260 of file list_entry.hpp.
|
inline |
Definition at line 233 of file list_entry.hpp.
|
inline |
Definition at line 236 of file list_entry.hpp.
|
private |
Definition at line 287 of file list_entry.hpp.
|
private |
Definition at line 303 of file list_entry.hpp.
|
private |
Definition at line 280 of file list_entry.hpp.
|
private |
Definition at line 293 of file list_entry.hpp.
|
private |
Definition at line 288 of file list_entry.hpp.
|
private |
Definition at line 300 of file list_entry.hpp.
|
private |
Definition at line 281 of file list_entry.hpp.
|
private |
Definition at line 306 of file list_entry.hpp.
|
private |
hard link identification
Definition at line 302 of file list_entry.hpp.
|
private |
Definition at line 285 of file list_entry.hpp.
|
private |
Definition at line 284 of file list_entry.hpp.
|
private |
Definition at line 283 of file list_entry.hpp.
|
private |
Definition at line 276 of file list_entry.hpp.
|
private |
Definition at line 273 of file list_entry.hpp.
|
mutableprivate |
Definition at line 301 of file list_entry.hpp.
|
private |
Definition at line 278 of file list_entry.hpp.
|
private |
Definition at line 282 of file list_entry.hpp.
|
private |
also used to store removal_date for removed entries
Definition at line 279 of file list_entry.hpp.
Referenced by get_last_modif().
|
private |
Definition at line 290 of file list_entry.hpp.
|
private |
Definition at line 291 of file list_entry.hpp.
|
private |
Definition at line 272 of file list_entry.hpp.
|
private |
Definition at line 294 of file list_entry.hpp.
|
private |
Definition at line 296 of file list_entry.hpp.
|
private |
Definition at line 298 of file list_entry.hpp.
|
private |
Definition at line 304 of file list_entry.hpp.
|
private |
Definition at line 305 of file list_entry.hpp.
|
private |
Definition at line 277 of file list_entry.hpp.
|
private |
Definition at line 292 of file list_entry.hpp.
|
private |
Definition at line 286 of file list_entry.hpp.
|
private |
Definition at line 295 of file list_entry.hpp.
|
private |
Definition at line 297 of file list_entry.hpp.
|
private |
Definition at line 299 of file list_entry.hpp.
|
private |
target[0] used to store signature of removed entry for removed entries
Definition at line 289 of file list_entry.hpp.
|
private |
Definition at line 274 of file list_entry.hpp.
|
private |
Definition at line 275 of file list_entry.hpp.