source: trunk/bin/Parameter.h

Last change on this file was 1513, checked in by Peter Johansson, 9 years ago

remove trailing whitespace

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1#ifndef _theplu_svndigest_parameter_
2#define _theplu_svndigest_parameter_
3
4// $Id: Parameter.h 1513 2012-09-23 04:09:08Z peter $
5
6/*
7  Copyright (C) 2006, 2007, 2008 Jari Häkkinen, Peter Johansson
8  Copyright (C) 2009, 2010 Peter Johansson
9
10  This file is part of svndigest, http://dev.thep.lu.se/svndigest
11
12  svndigest is free software; you can redistribute it and/or modify it
13  under the terms of the GNU General Public License as published by
14  the Free Software Foundation; either version 3 of the License, or
15  (at your option) any later version.
16
17  svndigest is distributed in the hope that it will be useful, but
18  WITHOUT ANY WARRANTY; without even the implied warranty of
19  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20  General Public License for more details.
21
22  You should have received a copy of the GNU General Public License
23  along with svndigest. If not, see <http://www.gnu.org/licenses/>.
24*/
25
26#include "AbstractParameter.h"
27
28#include "lib/OptionVersion.h"
29
30#include "yat/CommandLine.h"
31#include "yat/OptionArg.h"
32#include "yat/OptionSwitch.h"
33
34
35#include <string>
36
37namespace theplu {
38namespace svndigest {
39
40  // base class for svndigestParameter and svncopyrightParameter
41  class Parameter : public AbstractParameter
42  {
43  public:
44    Parameter(void);
45    virtual ~Parameter(void);
46
47    std::string config_file(void) const;
48
49    bool generate_config(void) const ;
50    bool ignore_cache(void) const;
51
52  private:
53    void analyse1(void);
54    virtual void analyse2(void)=0;
55    void init1(void);
56    // called at end of init(void)
57    virtual void init2(void) = 0;
58    void set_default1(void);
59    virtual void set_default2(void)=0;
60
61    yat::utility::OptionArg<std::string> config_file_;
62    yat::utility::OptionSwitch generate_config_;
63    yat::utility::OptionSwitch ignore_cache_;
64  };
65
66}} // of namespace svndigest and namespace theplu
67
68#endif
Note: See TracBrowser for help on using the repository browser.