1060 |
02 Jun 10 |
peter |
1 |
#ifndef _theplu_svndigest_svndigest_parameter_ |
1060 |
02 Jun 10 |
peter |
2 |
#define _theplu_svndigest_svndigest_parameter_ |
165 |
24 Aug 06 |
jari |
3 |
|
37 |
13 Jan 06 |
peter |
// $Id$ |
37 |
13 Jan 06 |
peter |
5 |
|
84 |
13 Mar 06 |
jari |
6 |
/* |
1635 |
30 Mar 23 |
peter |
Copyright (C) 2006 Jari Häkkinen, Peter Johansson |
1635 |
30 Mar 23 |
peter |
Copyright (C) 2007 Peter Johansson |
1635 |
30 Mar 23 |
peter |
Copyright (C) 2008 Jari Häkkinen, Peter Johansson |
1515 |
26 Sep 12 |
peter |
Copyright (C) 2009, 2010, 2012 Peter Johansson |
84 |
13 Mar 06 |
jari |
11 |
|
687 |
04 Aug 08 |
peter |
This file is part of svndigest, http://dev.thep.lu.se/svndigest |
84 |
13 Mar 06 |
jari |
13 |
|
149 |
12 Aug 06 |
jari |
svndigest is free software; you can redistribute it and/or modify it |
84 |
13 Mar 06 |
jari |
under the terms of the GNU General Public License as published by |
693 |
11 Sep 08 |
jari |
the Free Software Foundation; either version 3 of the License, or |
84 |
13 Mar 06 |
jari |
(at your option) any later version. |
84 |
13 Mar 06 |
jari |
18 |
|
149 |
12 Aug 06 |
jari |
svndigest is distributed in the hope that it will be useful, but |
84 |
13 Mar 06 |
jari |
WITHOUT ANY WARRANTY; without even the implied warranty of |
149 |
12 Aug 06 |
jari |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
84 |
13 Mar 06 |
jari |
General Public License for more details. |
84 |
13 Mar 06 |
jari |
23 |
|
84 |
13 Mar 06 |
jari |
You should have received a copy of the GNU General Public License |
693 |
11 Sep 08 |
jari |
along with svndigest. If not, see <http://www.gnu.org/licenses/>. |
84 |
13 Mar 06 |
jari |
26 |
*/ |
84 |
13 Mar 06 |
jari |
27 |
|
1060 |
02 Jun 10 |
peter |
28 |
#include "Parameter.h" |
1060 |
02 Jun 10 |
peter |
29 |
|
1121 |
05 Jul 10 |
peter |
30 |
#include "lib/OptionVersion.h" |
820 |
12 Sep 09 |
peter |
31 |
|
795 |
30 Jun 09 |
peter |
32 |
#include "yat/CommandLine.h" |
795 |
30 Jun 09 |
peter |
33 |
#include "yat/OptionArg.h" |
820 |
12 Sep 09 |
peter |
34 |
#include "yat/OptionHelp.h" |
820 |
12 Sep 09 |
peter |
35 |
#include "yat/OptionSwitch.h" |
625 |
23 Apr 08 |
peter |
36 |
|
820 |
12 Sep 09 |
peter |
37 |
|
37 |
13 Jan 06 |
peter |
38 |
#include <string> |
37 |
13 Jan 06 |
peter |
39 |
|
37 |
13 Jan 06 |
peter |
40 |
namespace theplu { |
1513 |
23 Sep 12 |
peter |
41 |
namespace yat { |
795 |
30 Jun 09 |
peter |
42 |
namespace utility { |
795 |
30 Jun 09 |
peter |
43 |
class OptionSwitch; |
795 |
30 Jun 09 |
peter |
44 |
}} |
149 |
12 Aug 06 |
jari |
45 |
namespace svndigest { |
37 |
13 Jan 06 |
peter |
46 |
|
37 |
13 Jan 06 |
peter |
// class for command line options. |
1513 |
23 Sep 12 |
peter |
48 |
class svndigestParameter : public Parameter |
1060 |
02 Jun 10 |
peter |
49 |
{ |
37 |
13 Jan 06 |
peter |
50 |
public: |
1060 |
02 Jun 10 |
peter |
51 |
svndigestParameter(void); |
1060 |
02 Jun 10 |
peter |
52 |
virtual ~svndigestParameter(void); |
1023 |
10 Jan 10 |
peter |
53 |
const yat::utility::OptionArg<std::string>& anchor_format(void) const; |
1513 |
23 Sep 12 |
peter |
54 |
|
1082 |
08 Jun 10 |
peter |
55 |
bool force(void) const; |
1015 |
09 Jan 10 |
peter |
56 |
const yat::utility::OptionArg<std::string>& format(void) const; |
705 |
25 Nov 08 |
peter |
57 |
bool report(void) const; |
705 |
25 Nov 08 |
peter |
58 |
bool revisions(void) const; |
116 |
30 Jun 06 |
peter |
/// @return absolute path to root directory |
705 |
25 Nov 08 |
peter |
60 |
std::string targetdir(void) const; |
1531 |
04 Oct 12 |
peter |
61 |
bool update(void) const; |
37 |
13 Jan 06 |
peter |
62 |
|
37 |
13 Jan 06 |
peter |
63 |
private: |
1060 |
02 Jun 10 |
peter |
64 |
void analyse2(void); |
1060 |
02 Jun 10 |
peter |
65 |
void init2(void); |
1060 |
02 Jun 10 |
peter |
66 |
void set_default2(void); |
37 |
13 Jan 06 |
peter |
67 |
|
1023 |
10 Jan 10 |
peter |
68 |
yat::utility::OptionArg<std::string> anchor_format_; |
1082 |
08 Jun 10 |
peter |
69 |
yat::utility::OptionSwitch force_; |
1015 |
09 Jan 10 |
peter |
70 |
yat::utility::OptionArg<std::string> format_; |
820 |
12 Sep 09 |
peter |
71 |
yat::utility::OptionSwitch report_; |
820 |
12 Sep 09 |
peter |
72 |
yat::utility::OptionSwitch revisions_; |
820 |
12 Sep 09 |
peter |
73 |
yat::utility::OptionArg<std::string> target_; |
1531 |
04 Oct 12 |
peter |
74 |
yat::utility::OptionSwitch update_; |
37 |
13 Jan 06 |
peter |
75 |
}; |
37 |
13 Jan 06 |
peter |
76 |
|
149 |
12 Aug 06 |
jari |
77 |
}} // of namespace svndigest and namespace theplu |
37 |
13 Jan 06 |
peter |
78 |
|
37 |
13 Jan 06 |
peter |
79 |
#endif |