source: trunk/bin/Parameter.h @ 138

Last change on this file since 138 was 116, checked in by Peter Johansson, 15 years ago

fixes #48 #49

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
RevLine 
[37]1// $Id: Parameter.h 116 2006-06-30 12:04:54Z peter $
2
[84]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
[37]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_; }
[73]37    inline bool revisions(void) const { return revisions_; }
[116]38    /// @return absolute path to root directory
[37]39    inline const std::string& root(void) const { return root_; }
[116]40    /// @return absolute path to target directory
[49]41    inline const std::string& targetdir(void) const { return targetdir_; }
[37]42    inline bool verbose(void) const { return verbose_; }
43
44  private:
45    void analyse(void);
[73]46    void defaults(void);
[37]47    void help(void);
[98]48    void version(void) const;
[37]49
50    bool force_;
[73]51    bool revisions_;
[37]52    std::string root_;
[49]53    std::string targetdir_;
[37]54    bool verbose_;
55  };
56
57}} // of namespace svnstat and namespace theplu
58
59#endif
Note: See TracBrowser for help on using the repository browser.