source: trunk/bin/Parameter.h @ 93

Last change on this file since 93 was 84, checked in by Jari Häkkinen, 16 years ago

Added copyright statement. Bumped version number to pre0.3. Cleaned up code.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1// $Id: Parameter.h 84 2006-03-13 22:04:34Z jari $
2
3/*
4  Copyright (C) 2006 Jari Häkkinen, Peter Johansson
5
6  This file is part of svnstat, http://lev.thep.lu.se/trac/svnstat
7
8  svnstat is free software; you can redistribute it and/or modify it
9  under the terms of the GNU General Public License as published by
10  the Free Software Foundation; either version 2 of the License, or
11  (at your option) any later version.
12
13  svnstat is distributed in the hope that it will be useful, but
14  WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  General Public License for more details.
17
18  You should have received a copy of the GNU General Public License
19  along with this program; if not, write to the Free Software
20  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21  02111-1307, USA.
22*/
23
24#ifndef _theplu_svnstat_parameter_
25#define _theplu_svnstat_parameter_
26
27#include <string>
28
29namespace theplu {
30namespace svnstat {
31
32  // class for command line options.
33  class Parameter {
34  public:
35    Parameter(const int argc,const char *argv[]);
36    inline bool force(void) const { return force_; }
37    inline bool revisions(void) const { return revisions_; }
38    inline const std::string& root(void) const { return root_; }
39    inline const std::string& targetdir(void) const { return targetdir_; }
40    inline bool verbose(void) const { return verbose_; }
41
42  private:
43    void analyse(void);
44    void defaults(void);
45    void help(void);
46    void version(void);
47
48    bool force_;
49    bool revisions_;
50    std::string root_;
51    std::string targetdir_;
52    bool verbose_;
53  };
54
55}} // of namespace svnstat and namespace theplu
56
57#endif
Note: See TracBrowser for help on using the repository browser.