source: branches/0.6-stable/bin/Parameter.h @ 459

Last change on this file since 459 was 430, checked in by Peter Johansson, 14 years ago

changing lev.thep.lu.se to trac.thep.lu.se

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1#ifndef _theplu_svndigest_parameter_
2#define _theplu_svndigest_parameter_
3
4// $Id: Parameter.h 430 2007-07-06 23:33:11Z peter $
5
6/*
7  Copyright (C) 2006 Jari Häkkinen, Peter Johansson
8  Copyright (C) 2007 Peter Johansson
9
10  This file is part of svndigest, http://trac.thep.lu.se/trac/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 2 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 this program; if not, write to the Free Software
24  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
25  02111-1307, USA.
26*/
27
28#include <map>
29#include <string>
30
31namespace theplu {
32namespace svndigest {
33
34  // class for command line options.
35  class Parameter {
36  public:
37    Parameter(const int argc,const char *argv[]);
38    std::string config_file(void) const;
39    inline bool copyright(void) const { return copyright_; }
40    /// @todo
41    inline bool force(void) const { return force_; }
42    inline bool generate_config(void) const { return generate_config_; }
43    inline bool revisions(void) const { return revisions_; }
44    /// @return absolute path to root directory
45    inline const std::string& root(void) const { return root_; }
46    /// @return absolute path to target directory
47    inline const std::string& targetdir(void) const { return targetdir_; }
48    inline bool verbose(void) const { return verbose_; }
49
50  private:
51    void analyse(void);
52    void defaults(void);
53    void help(void);
54    void version(void) const;
55
56    std::string config_file_;
57    bool copyright_;
58    bool force_;
59    bool generate_config_;
60    bool revisions_;
61    std::string root_;
62    std::string targetdir_;
63    bool verbose_;
64  };
65
66}} // of namespace svndigest and namespace theplu
67
68#endif
Note: See TracBrowser for help on using the repository browser.