Logo Search packages:      
Sourcecode: schroot version File versions  Download package

void sbuild::chroot::print_details ( std::ostream &  stream  )  const [protected, virtual]

Print detailed information about the chroot to a stream. The information is printed in plain text with one line per property.

Parameters:
stream the stream to output to.

Reimplemented in sbuild::chroot_block_device, sbuild::chroot_file, sbuild::chroot_lvm_snapshot, sbuild::chroot_plain, and sbuild::chroot_source.

Definition at line 314 of file sbuild-chroot.cc.

References active, format_details(), get_aliases(), get_chroot_type(), get_command_prefix(), get_description(), get_groups(), get_location(), get_mount_device(), get_mount_location(), get_name(), get_path(), get_priority(), get_root_groups(), get_run_exec_scripts(), get_run_setup_scripts(), get_session_flags(), and SESSION_CREATE.

Referenced by sbuild::chroot_plain::print_details(), sbuild::chroot_file::print_details(), and sbuild::chroot_block_device::print_details().

{
  if (this->active == true)
    stream << _("  --- Session ---\n");
  else
    stream << _("  --- Chroot ---\n");
  stream << format_details(_("Name"), get_name())
       << format_details(_("Description"), get_description())
       << format_details(_("Type"), get_chroot_type())
       << format_details(_("Priority"), get_priority())
       << format_details(_("Groups"), get_groups())
       << format_details(_("Root Groups"), get_root_groups())
       << format_details(_("Aliases"), get_aliases())
       << format_details(_("Run Setup Scripts"), get_run_setup_scripts())
       << format_details(_("Run Execution Scripts"),
                     get_run_exec_scripts())
       << format_details(_("Session Managed"),
                     static_cast<bool>(get_session_flags() &
                                   chroot::SESSION_CREATE));

  if (!get_command_prefix().empty())
    stream << format_details(_("Command Prefix"), get_command_prefix());

  /* Non user-settable properties are listed last. */
  if (!get_location().empty())
    stream << format_details(_("Location"),
                       get_location());
  if (!get_mount_location().empty())
    stream << format_details(_("Mount Location"),
                       get_mount_location());
  if (!get_path().empty())
    stream << format_details(_("Path"),
                       get_path());
  if (!get_mount_device().empty())
    stream << format_details(_("Mount Device"), get_mount_device());
}


Generated by  Doxygen 1.6.0   Back to index