bin/svndigestParameter.h

Code
Comments
Other
Rev Date Author Line
1060 02 Jun 10 peter 1 #ifndef _theplu_svndigest_svndigest_parameter_
1060 02 Jun 10 peter 2 #define _theplu_svndigest_svndigest_parameter_
165 24 Aug 06 jari 3
37 13 Jan 06 peter 4 // $Id$
37 13 Jan 06 peter 5
84 13 Mar 06 jari 6 /*
1635 30 Mar 23 peter 7   Copyright (C) 2006 Jari Häkkinen, Peter Johansson
1635 30 Mar 23 peter 8   Copyright (C) 2007 Peter Johansson
1635 30 Mar 23 peter 9   Copyright (C) 2008 Jari Häkkinen, Peter Johansson
1515 26 Sep 12 peter 10   Copyright (C) 2009, 2010, 2012 Peter Johansson
84 13 Mar 06 jari 11
687 04 Aug 08 peter 12   This file is part of svndigest, http://dev.thep.lu.se/svndigest
84 13 Mar 06 jari 13
149 12 Aug 06 jari 14   svndigest is free software; you can redistribute it and/or modify it
84 13 Mar 06 jari 15   under the terms of the GNU General Public License as published by
693 11 Sep 08 jari 16   the Free Software Foundation; either version 3 of the License, or
84 13 Mar 06 jari 17   (at your option) any later version.
84 13 Mar 06 jari 18
149 12 Aug 06 jari 19   svndigest is distributed in the hope that it will be useful, but
84 13 Mar 06 jari 20   WITHOUT ANY WARRANTY; without even the implied warranty of
149 12 Aug 06 jari 21   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
84 13 Mar 06 jari 22   General Public License for more details.
84 13 Mar 06 jari 23
84 13 Mar 06 jari 24   You should have received a copy of the GNU General Public License
693 11 Sep 08 jari 25   along with svndigest. If not, see <http://www.gnu.org/licenses/>.
84 13 Mar 06 jari 26 */
84 13 Mar 06 jari 27
1060 02 Jun 10 peter 28 #include "Parameter.h"
1060 02 Jun 10 peter 29
1121 05 Jul 10 peter 30 #include "lib/OptionVersion.h"
820 12 Sep 09 peter 31
1673 26 Aug 23 peter 32 #include <yat/utility/CommandLine.h>
1673 26 Aug 23 peter 33 #include <yat/utility/OptionArg.h>
1673 26 Aug 23 peter 34 #include <yat/utility/OptionHelp.h>
1673 26 Aug 23 peter 35 #include <yat/utility/OptionSwitch.h>
625 23 Apr 08 peter 36
37 13 Jan 06 peter 37 #include <string>
37 13 Jan 06 peter 38
37 13 Jan 06 peter 39 namespace theplu {
149 12 Aug 06 jari 40 namespace svndigest {
37 13 Jan 06 peter 41
37 13 Jan 06 peter 42   // class for command line options.
1513 23 Sep 12 peter 43   class svndigestParameter : public Parameter
1060 02 Jun 10 peter 44   {
37 13 Jan 06 peter 45   public:
1060 02 Jun 10 peter 46     svndigestParameter(void);
1060 02 Jun 10 peter 47     virtual ~svndigestParameter(void);
1023 10 Jan 10 peter 48     const yat::utility::OptionArg<std::string>& anchor_format(void) const;
1513 23 Sep 12 peter 49
1082 08 Jun 10 peter 50     bool force(void) const;
1015 09 Jan 10 peter 51     const yat::utility::OptionArg<std::string>& format(void) const;
705 25 Nov 08 peter 52     bool report(void) const;
705 25 Nov 08 peter 53     bool revisions(void) const;
116 30 Jun 06 peter 54     /// @return absolute path to root directory
705 25 Nov 08 peter 55     std::string targetdir(void) const;
1531 04 Oct 12 peter 56     bool update(void) const;
37 13 Jan 06 peter 57
37 13 Jan 06 peter 58   private:
1060 02 Jun 10 peter 59     void analyse2(void);
1060 02 Jun 10 peter 60     void init2(void);
1060 02 Jun 10 peter 61     void set_default2(void);
37 13 Jan 06 peter 62
1023 10 Jan 10 peter 63     yat::utility::OptionArg<std::string> anchor_format_;
1082 08 Jun 10 peter 64     yat::utility::OptionSwitch force_;
1015 09 Jan 10 peter 65     yat::utility::OptionArg<std::string> format_;
820 12 Sep 09 peter 66     yat::utility::OptionSwitch report_;
820 12 Sep 09 peter 67     yat::utility::OptionSwitch revisions_;
820 12 Sep 09 peter 68     yat::utility::OptionArg<std::string> target_;
1531 04 Oct 12 peter 69     yat::utility::OptionSwitch update_;
37 13 Jan 06 peter 70   };
37 13 Jan 06 peter 71
149 12 Aug 06 jari 72 }} // of namespace svndigest and namespace theplu
37 13 Jan 06 peter 73
37 13 Jan 06 peter 74 #endif