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;
143 bool zeroing_neg_dates;
153 ref_filename =
nullptr;
155 compress_mask =
nullptr;
157 aux_filename =
nullptr;
159 backup_hook_mask =
nullptr;
165 if(fs_root !=
nullptr)
167 if(sauv_root !=
nullptr)
169 if(ref_root !=
nullptr)
171 if(selection !=
nullptr)
173 if(subtree !=
nullptr)
175 if(ref_filename !=
nullptr)
177 if(ea_mask !=
nullptr)
179 if(compress_mask !=
nullptr)
180 delete compress_mask;
181 if(aux_root !=
nullptr)
183 if(aux_filename !=
nullptr)
185 if(overwrite !=
nullptr)
187 if(backup_hook_mask !=
nullptr)
188 delete backup_hook_mask;
194 extern bool get_args(shell_interaction & dialog,
196 const vector<string> & dar_dcf_path,
197 const vector<string> & dar_duc_path,
205 const struct option *get_long_opt();
208 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'/'