#include <config.h>
#include <xapian.h>
#include <cstdlib>
#include <iostream>
#include "gnu_getopt.h"

Go to the source code of this file.
Classes | |
| class | MyCompactor |
Defines | |
| #define | PROG_NAME "xapian-compact" |
| #define | PROG_DESC "Compact a database, or merge and compact several" |
| #define | OPT_HELP 1 |
| #define | OPT_VERSION 2 |
| #define | OPT_NO_RENUMBER 3 |
Functions | |
| static void | show_usage () |
| int | main (int argc, char **argv) |
Definition in file xapian-compact.cc.
| #define OPT_HELP 1 |
Definition at line 37 of file xapian-compact.cc.
| #define OPT_NO_RENUMBER 3 |
Definition at line 39 of file xapian-compact.cc.
| #define OPT_VERSION 2 |
Definition at line 38 of file xapian-compact.cc.
| #define PROG_DESC "Compact a database, or merge and compact several" |
Definition at line 35 of file xapian-compact.cc.
| #define PROG_NAME "xapian-compact" |
Definition at line 34 of file xapian-compact.cc.
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
Definition at line 104 of file xapian-compact.cc.
References Xapian::Compactor::add_source(), Xapian::Compactor::compact(), Xapian::Compactor::FULLER, Xapian::Error::get_description(), gnu_getopt_long(), no_argument, OPT_HELP, OPT_NO_RENUMBER, OPT_VERSION, optarg, optind, opts, PACKAGE_STRING, PROG_DESC, PROG_NAME, required_argument, Xapian::Compactor::set_block_size(), Xapian::Compactor::set_compaction_level(), Xapian::Compactor::set_destdir(), Xapian::Compactor::set_multipass(), MyCompactor::set_quiet(), Xapian::Compactor::set_renumber(), show_usage(), and Xapian::Compactor::STANDARD.
| static void show_usage | ( | ) | [static] |