#include <dchroot-dsa-chroot-config.h>
Inheritance diagram for dchroot_dsa::chroot_config:
Public Member Functions | |
chroot_config () | |
The constructor. | |
chroot_config (std::string const &file, bool active) | |
The constructor. | |
virtual | ~chroot_config () |
The destructor. | |
Private Member Functions | |
virtual void | parse_data (std::istream &stream, bool active) |
Parse a loaded configuration file. |
This class provides all the functionality of chroot_config, but parses the dchroot-dsa configuration file format, rather than the schroot format.
Definition at line 35 of file dchroot-dsa-chroot-config.h.
chroot_config::chroot_config | ( | ) |
The constructor.
Reimplemented from sbuild::chroot_config.
Definition at line 40 of file dchroot-dsa-chroot-config.cc.
chroot_config::chroot_config | ( | std::string const & | file, | |
bool | active | |||
) |
The constructor.
file | initialise using a configuration file or a whole directory containing configuration files. | |
active | true if the chroots in the configuration file are active sessions, otherwise false. |
Reimplemented from sbuild::chroot_config.
Definition at line 45 of file dchroot-dsa-chroot-config.cc.
chroot_config::~chroot_config | ( | ) | [virtual] |
The destructor.
Reimplemented from sbuild::chroot_config.
Definition at line 51 of file dchroot-dsa-chroot-config.cc.
void chroot_config::parse_data | ( | std::istream & | stream, | |
bool | active | |||
) | [private, virtual] |
Parse a loaded configuration file.
If there are problems with the configuration file, an error will be thrown.
stream | the data stream to parse. | |
active | true if the chroots in the configuration file are active sessions, otherwise false. |
Reimplemented from sbuild::chroot_config.
Definition at line 56 of file dchroot-dsa-chroot-config.cc.
References _, sbuild::keyfile::has_group(), sbuild::chroot_config::load_keyfile(), sbuild::keyfile::set_group(), sbuild::keyfile::set_list_value(), sbuild::keyfile::set_value(), and sbuild::split_string().
Here is the call graph for this function: