source: trunk/debathena/third/schroot/bin/dchroot-dsa/dchroot-dsa-chroot-config.h @ 24167

Revision 24167, 1.8 KB checked in by broder, 15 years ago (diff)
Import schroot upstream into subversion.
Line 
1/* Copyright © 2005-2007  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 3 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, see
15 * <http://www.gnu.org/licenses/>.
16 *
17 *********************************************************************/
18
19#ifndef DCHROOT_DSA_CHROOT_CONFIG_H
20#define DCHROOT_DSA_CHROOT_CONFIG_H
21
22#include <sbuild/sbuild-chroot-config.h>
23
24namespace dchroot_dsa
25{
26
27  /**
28   * Chroot configuration for dchroot-dsa compatibility.
29   *
30   * This class provides all the functionality of chroot_config, but
31   * parses the dchroot-dsa configuration file format, rather than the
32   * schroot format.
33   */
34  class chroot_config : public sbuild::chroot_config
35  {
36  public:
37    /// The constructor.
38    chroot_config ();
39
40    /**
41     * The constructor.
42     *
43     * @param file initialise using a configuration file or a whole
44     * directory containing configuration files.
45     * @param active true if the chroots in the configuration file are
46     * active sessions, otherwise false.
47     */
48    chroot_config (std::string const& file,
49                   bool               active);
50
51    /// The destructor.
52    virtual ~chroot_config ();
53
54  private:
55    virtual void
56    parse_data (std::istream& stream,
57                bool          active);
58  };
59
60}
61
62#endif /* DCHROOT_DSA_CHROOT_CONFIG_H */
63
64/*
65 * Local Variables:
66 * mode:C++
67 * End:
68 */
Note: See TracBrowser for help on using the repository browser.