source: trunk/bin/Parameter.h @ 149

Last change on this file since 149 was 149, checked in by Jari Häkkinen, 15 years ago

Changed svnstat to svndigest.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
RevLine 
[37]1// $Id: Parameter.h 149 2006-08-12 09:11:46Z jari $
2
[84]3/*
4  Copyright (C) 2006 Jari Häkkinen, Peter Johansson
5
[149]6  This file is part of svndigest, http://lev.thep.lu.se/trac/svndigest
[84]7
[149]8  svndigest is free software; you can redistribute it and/or modify it
[84]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
[149]13  svndigest is distributed in the hope that it will be useful, but
[84]14  WITHOUT ANY WARRANTY; without even the implied warranty of
[149]15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[84]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
[149]24#ifndef _theplu_svndigest_parameter_
25#define _theplu_svndigest_parameter_
[37]26
27#include <string>
28
29namespace theplu {
[149]30namespace svndigest {
[37]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
[149]57}} // of namespace svndigest and namespace theplu
[37]58
59#endif
Note: See TracBrowser for help on using the repository browser.