Disk ARchive  2.5.9
Full featured and portable backup and archiving tool
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules
crit_action_cmd_line.hpp
Go to the documentation of this file.
1 /*********************************************************************/
2 // dar - disk archive - a backup/restoration program
3 // Copyright (C) 2002-2052 Denis Corbin
4 //
5 // This program is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License
7 // as published by the Free Software Foundation; either version 2
8 // of the License, or (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 //
19 // to contact the author : http://dar.linux.free.fr/email.html
20 /*********************************************************************/
21 
25 
26 
27 #ifndef CRIT_ACTION_CMD_LINE_HPP
28 #define CRIT_ACTION_CMD_LINE_HPP
29 
30 #include "../my_config.h"
31 #include "criterium.hpp"
32 #include "user_interaction.hpp"
33 
36 
38 
44 extern std::string crit_action_canonize_string(const std::string & argument);
45 
46 
48 
57  const std::string & argument,
58  const libdar::infinint & hourshift);
59 
61 
62 #endif
contains classes that let the user define the policy for overwriting files
const libdar::crit_action * crit_action_create_from_string(libdar::user_interaction &dialog, const std::string &argument, const libdar::infinint &hourshift)
creates a criterium object as defined by the command line's given string
std::string crit_action_canonize_string(const std::string &argument)
canonizes a criterium description string
This is a pure virtual class that is used by libdar when interaction with the user is required...
defines the interaction between libdar and the user.Three classes are defined
the global action for overwriting
Definition: criterium.hpp:77
the arbitrary large positive integer class