source: trunk/lib/Configuration.h @ 229

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

Modified behaviour of Configuration. Fixes #114, #115, #116

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
RevLine 
[229]1#ifndef _theplu_svndigest_configuration_
2#define _theplu_svndigest_configuration_
3
4// $Id: Configuration.h 229 2007-03-25 20:16:07Z peter $
5
6/*
7  Copyright (C) 2007 Peter Johansson
8
9  This file is part of svndigest, http://lev.thep.lu.se/trac/svndigest
10
11  svndigest is free software; you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation; either version 2 of the License, or
14  (at your option) any later version.
15
16  svndigest is distributed in the hope that it will be useful, but
17  WITHOUT ANY WARRANTY; without even the implied warranty of
18  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19  General Public License for more details.
20
21  You should have received a copy of the GNU General Public License
22  along with this program; if not, write to the Free Software
23  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
24  02111-1307, USA.
25*/
26
27#include <fstream>
28#include <map>
29#include <string>
30
31namespace theplu{
32namespace svndigest{
33
34  class Configuration
35  {
36  public:
37    ///
38    /// Creates a Config object with default settings.
39    ///
40    /// @brief Default Constructor
41    ///
42    Configuration(void);
43
44    ///
45    /// @brief Stream Constructor
46    ///
47    Configuration(std::istream&);
48
49    ///
50    /// @brief Aliases for Copyright
51    ///
52    inline const std::map<std::string, std::string>&
53    copyright_alias(void) const { return copyright_alias_; }
54
55  private:
56    void set_default(void);
57
58    std::map<std::string, std::string> copyright_alias_;
59
60  };
61
62  ///
63  /// @brief Output operator
64  ///
65  std::ostream& operator<<(std::ostream&, const Configuration&);
66
67}} // end of namespace svndigest and namespace theplu
68
69#endif
70
71
Note: See TracBrowser for help on using the repository browser.