26 #ifndef COMMAND_LINE_HPP 27 #define COMMAND_LINE_HPP 29 #include "../my_config.h" 47 enum operation { noop, extract, create, diff, test, listing, isolate, merging, version_or_help };
51 enum dirty_behavior { dirtyb_ignore, dirtyb_warn, dirtyb_ok };
61 string * ref_filename;
70 bool display_treated_only_dir;
72 bool display_finished;
74 U_I compression_level;
85 vector<string> signatories;
86 bool blind_signatures;
93 string ea_name_for_exclusion;
95 bool warn_remove_no_match;
101 bool cache_directory_tagging;
103 U_32 crypto_size_ref;
106 string * aux_filename;
109 U_32 aux_crypto_size;
110 bool keep_compressed;
120 bool furtive_read_mode;
122 bool use_sequential_marks;
123 bool sequential_read;
125 dirty_behavior dirty;
134 mask * backup_hook_mask;
135 string backup_hook_execute;
137 bool ignore_unknown_inode;
138 bool no_compare_symlink_date;
150 ref_filename =
nullptr;
152 compress_mask =
nullptr;
154 aux_filename =
nullptr;
156 backup_hook_mask =
nullptr;
162 if(fs_root !=
nullptr)
164 if(sauv_root !=
nullptr)
166 if(ref_root !=
nullptr)
168 if(selection !=
nullptr)
170 if(subtree !=
nullptr)
172 if(ref_filename !=
nullptr)
174 if(ea_mask !=
nullptr)
176 if(compress_mask !=
nullptr)
177 delete compress_mask;
178 if(aux_root !=
nullptr)
180 if(aux_filename !=
nullptr)
182 if(overwrite !=
nullptr)
184 if(backup_hook_mask !=
nullptr)
185 delete backup_hook_mask;
191 extern bool get_args(shell_interaction & dialog,
193 const vector<string> & dar_dcf_path,
194 const vector<string> & dar_duc_path,
202 const struct option *get_long_opt();
205 const char *get_short_opt();
contains classes that let the user define the policy for overwriting files
the generic class, parent of all masks
the archive class is defined in this module
here is the definition of the path classthe path class handle path and provide several operation on t...
listformat
defines the way archive listing is done:
the global action for overwriting
user_interaction class for command_line tools
switch module to limitint (32 ou 64 bits integers) or infinint
here lies a collection of mask classes
compression
the different compression algorithm available
bool nodump()
returns whether nodump flag support has been activated at compilation time
compression engine implementation
bool get_args(shell_interaction &dialog, const char *home, const vector< string > &dar_dcf_path, const vector< string > &dar_duc_path, S_I argc, char *const argv[], line_param ¶m)
main routine to extract parameters from command-line and included files
the arbitrary large positive integer class
libdar namespace encapsulate all libdar symbols
comparison_fields
flag used to only consider certain fields when comparing/restoring inodes
here is defined the many classed which is build of the catalogue
the class path is here to manipulate paths in the Unix notation: using'/'