source: trunk/bin/Parameter.h @ 538

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

added ignore-cache option

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
RevLine 
[165]1#ifndef _theplu_svndigest_parameter_
2#define _theplu_svndigest_parameter_
3
[37]4// $Id: Parameter.h 538 2007-12-27 07:25:08Z peter $
5
[84]6/*
7  Copyright (C) 2006 Jari Häkkinen, Peter Johansson
[225]8  Copyright (C) 2007 Peter Johansson
[84]9
[519]10  This file is part of svndigest, http://trac.thep.lu.se/svndigest
[84]11
[149]12  svndigest is free software; you can redistribute it and/or modify it
[84]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
[149]17  svndigest is distributed in the hope that it will be useful, but
[84]18  WITHOUT ANY WARRANTY; without even the implied warranty of
[149]19  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[84]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
[225]28#include <map>
[37]29#include <string>
30
31namespace theplu {
[149]32namespace svndigest {
[37]33
34  // class for command line options.
35  class Parameter {
36  public:
[518]37    Parameter( int argc, char *argv[]);
[240]38    std::string config_file(void) const;
[198]39    inline bool copyright(void) const { return copyright_; }
[225]40    /// @todo
[37]41    inline bool force(void) const { return force_; }
[229]42    inline bool generate_config(void) const { return generate_config_; }
[538]43    inline bool ignore_cache(void) const { return ignore_cache_; }
[423]44    inline bool report(void) const { return report_; }
[73]45    inline bool revisions(void) const { return revisions_; }
[116]46    /// @return absolute path to root directory
[37]47    inline const std::string& root(void) const { return root_; }
[116]48    /// @return absolute path to target directory
[49]49    inline const std::string& targetdir(void) const { return targetdir_; }
[37]50    inline bool verbose(void) const { return verbose_; }
51
52  private:
53    void analyse(void);
[73]54    void defaults(void);
[37]55    void help(void);
[98]56    void version(void) const;
[37]57
[229]58    std::string config_file_;
[198]59    bool copyright_;
[37]60    bool force_;
[229]61    bool generate_config_;
[538]62    bool ignore_cache_;
[423]63    bool report_;
[73]64    bool revisions_;
[37]65    std::string root_;
[49]66    std::string targetdir_;
[37]67    bool verbose_;
68  };
69
[149]70}} // of namespace svndigest and namespace theplu
[37]71
72#endif
Note: See TracBrowser for help on using the repository browser.