~ubuntu-branches/ubuntu/intrepid/schroot/intrepid

« back to all changes in this revision

Viewing changes to schroot/dchroot-chroot-config.h

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2006-07-08 18:33:28 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060708183328-rlo4mpldmyoda55q
Tags: 0.99.2-2ubuntu1
* remerge ubuntu changes:
  + debian/control: libpam-dev (>> 0.79-3ubuntu6)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright © 2005-2006  Roger Leigh <rleigh@debian.org>
2
 
 *
3
 
 * schroot is free software; you can redistribute it and/or modify it
4
 
 * under the terms of the GNU General Public License as published by
5
 
 * the Free Software Foundation; either version 2 of the License, or
6
 
 * (at your option) any later version.
7
 
 *
8
 
 * schroot is distributed in the hope that it will be useful, but
9
 
 * WITHOUT ANY WARRANTY; without even the implied warranty of
10
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11
 
 * General Public License for more details.
12
 
 *
13
 
 * You should have received a copy of the GNU General Public License
14
 
 * along with this program; if not, write to the Free Software
15
 
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
16
 
 * MA  02111-1307  USA
17
 
 *
18
 
 *********************************************************************/
19
 
 
20
 
#ifndef DCHROOT_CHROOT_CONFIG_H
21
 
#define DCHROOT_CHROOT_CONFIG_H
22
 
 
23
 
#include <map>
24
 
#include <ostream>
25
 
#include <vector>
26
 
#include <string>
27
 
 
28
 
#include "sbuild-chroot-config.h"
29
 
 
30
 
namespace dchroot
31
 
{
32
 
 
33
 
  /**
34
 
   * Chroot configuration for dchroot compatibility.
35
 
   *
36
 
   * This class provides all the functionality of chroot_config, but
37
 
   * parses the dchroot configuration file format, rather than the
38
 
   * schroot format.
39
 
   */
40
 
  class chroot_config : public sbuild::chroot_config
41
 
  {
42
 
  public:
43
 
    /// The constructor.
44
 
    chroot_config ();
45
 
 
46
 
    /**
47
 
     * The constructor.
48
 
     *
49
 
     * @param file initialise using a configuration file or a whole
50
 
     * directory containing configuration files.
51
 
     * @param active true if the chroots in the configuration file are
52
 
     * active sessions, otherwise false.
53
 
     */
54
 
    chroot_config (std::string const& file,
55
 
                   bool               active);
56
 
 
57
 
    /// The destructor.
58
 
    virtual ~chroot_config ();
59
 
 
60
 
  private:
61
 
    virtual void
62
 
    parse_data (std::istream& stream,
63
 
                bool          active);
64
 
  };
65
 
 
66
 
}
67
 
 
68
 
#endif /* DCHROOT_CHROOT_CONFIG_H */
69
 
 
70
 
/*
71
 
 * Local Variables:
72
 
 * mode:C++
73
 
 * End:
74
 
 */