bin/quartzcheck.cc File Reference

#include <config.h>
#include <xapian.h>
#include <iostream>
#include "autoptr.h"
#include "btreecheck.h"
#include "bcursor.h"
#include "quartz_types.h"
#include "quartz_utils.h"
#include "safesysstat.h"

Include dependency graph for quartzcheck.cc:

Go to the source code of this file.

Defines

#define XAPIAN_DEPRECATED(D)   D
#define PROG_NAME   "quartzcheck"
#define PROG_DESC   "Check the consistency of quartz database or table"

Functions

static void show_usage ()
static size_t check_table (const char *table, int opts)
int main (int argc, char **argv)

Variables

static vector< Xapian::termcountdoclens


Define Documentation

#define XAPIAN_DEPRECATED (  )     D

Definition at line 26 of file quartzcheck.cc.

#define PROG_NAME   "quartzcheck"

Definition at line 41 of file quartzcheck.cc.

Referenced by main(), and show_usage().

#define PROG_DESC   "Check the consistency of quartz database or table"

Definition at line 42 of file quartzcheck.cc.

Referenced by main().


Function Documentation

static void show_usage (  )  [static]

Definition at line 48 of file quartzcheck.cc.

References PROG_NAME.

Referenced by main().

static size_t check_table ( const char *  table,
int  opts 
) [static]

Definition at line 156 of file quartzcheck.cc.

References BtreeCheck::check(), Btree::cursor_get(), doclens, Btree::open(), Xapian::Unicode::tolower(), unpack_bool(), unpack_string(), unpack_string_preserving_sort(), unpack_uint(), unpack_uint_last(), and unpack_uint_preserving_sort().

Referenced by main().

int main ( int  argc,
char **  argv 
)

Definition at line 65 of file quartzcheck.cc.

References check_table(), doclens, error(), Xapian::Error::get_description(), Xapian::Database::get_lastdocid(), Xapian::Quartz::open(), OPT_FULL_TREE, OPT_SHORT_TREE, OPT_SHOW_BITMAP, OPT_SHOW_STATS, opts, PACKAGE_STRING, PROG_DESC, PROG_NAME, show_usage(), and stat().


Variable Documentation

vector<Xapian::termcount> doclens [static]

Definition at line 62 of file quartzcheck.cc.

Referenced by check_table(), and main().


Documentation for Xapian (version 1.0.10).
Generated on 24 Dec 2008 by Doxygen 1.5.2.