xapian-core  1.4.26
Classes | Macros | Functions
xapian-compact.cc File Reference

Compact a database, or merge and compact several. More...

#include <config.h>
#include <xapian.h>
#include <cstdlib>
#include <iostream>
#include "gnu_getopt.h"
+ Include dependency graph for xapian-compact.cc:

Go to the source code of this file.

Classes

class  MyCompactor
 

Macros

#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)
 

Detailed Description

Compact a database, or merge and compact several.

Definition in file xapian-compact.cc.

Macro Definition Documentation

◆ OPT_HELP

#define OPT_HELP   1

Definition at line 37 of file xapian-compact.cc.

Referenced by main().

◆ OPT_NO_RENUMBER

#define OPT_NO_RENUMBER   3

Definition at line 39 of file xapian-compact.cc.

Referenced by main().

◆ OPT_VERSION

#define OPT_VERSION   2

Definition at line 38 of file xapian-compact.cc.

Referenced by main().

◆ PROG_DESC

#define PROG_DESC   "Compact a database, or merge and compact several"

Definition at line 35 of file xapian-compact.cc.

Referenced by main().

◆ PROG_NAME

#define PROG_NAME   "xapian-compact"

Definition at line 34 of file xapian-compact.cc.

Referenced by main(), and show_usage().

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

◆ show_usage()

static void show_usage ( )
static

Definition at line 41 of file xapian-compact.cc.

References PROG_NAME.

Referenced by main().