bin/xapian-inspect.cc File Reference

Inspect the contents of a flint table for development or debugging. More...

#include <config.h>
#include <iomanip>
#include <iostream>
#include <string>
#include <stdio.h>
#include "flint_table.h"
#include "flint_cursor.h"
#include "stringutils.h"
#include "utils.h"
#include <xapian.h>
#include "gnu_getopt.h"

Include dependency graph for xapian-inspect.cc:

Go to the source code of this file.

Defines

#define PROG_NAME   "xapian-inspect"
#define PROG_DESC   "Inspect the contents of a flint table for development or debugging"
#define OPT_HELP   1
#define OPT_VERSION   2

Functions

static void show_usage ()
static void display_nicely (const string &data)
static void show_help ()
int main (int argc, char **argv)


Detailed Description

Inspect the contents of a flint table for development or debugging.

Definition in file xapian-inspect.cc.


Define Documentation

#define PROG_NAME   "xapian-inspect"

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

#define PROG_DESC   "Inspect the contents of a flint table for development or debugging"

Definition at line 40 of file xapian-inspect.cc.

#define OPT_HELP   1

Definition at line 42 of file xapian-inspect.cc.

#define OPT_VERSION   2

Definition at line 43 of file xapian-inspect.cc.


Function Documentation

static void show_usage (  )  [static]

Definition at line 45 of file xapian-inspect.cc.

References PROG_NAME.

static void display_nicely ( const string &  data  )  [static]

Definition at line 53 of file xapian-inspect.cc.

Referenced by main().

static void show_help (  )  [static]

Definition at line 77 of file xapian-inspect.cc.

Referenced by main().

int main ( int  argc,
char **  argv 
)

Definition at line 88 of file xapian-inspect.cc.

References FlintCursor::after_end(), FlintCursor::current_key, FlintCursor::current_tag, dir_exists(), display_nicely(), endswith(), error(), file_exists(), FlintCursor::find_entry(), FlintTable::get_entry_count(), gnu_getopt_long(), long_opts, FlintCursor::next(), no_argument, FlintTable::open(), OPT_HELP, OPT_VERSION, optind, PACKAGE_STRING, FlintCursor::prev(), PROG_DESC, PROG_NAME, FlintCursor::read_tag(), show_help(), show_usage(), and startswith().


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