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

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 () |
| static void | do_until (FlintCursor &cursor, const string &target) |
| int | main (int argc, char **argv) |
Definition in 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.
| #define PROG_DESC "Inspect the contents of a flint table for development or debugging" |
Definition at line 40 of file xapian-inspect.cc.
| #define PROG_NAME "xapian-inspect" |
Definition at line 39 of file xapian-inspect.cc.
| static void display_nicely | ( | const string & | data | ) | [static] |
| static void do_until | ( | FlintCursor & | cursor, | |
| const string & | target | |||
| ) | [static] |
Definition at line 90 of file xapian-inspect.cc.
References FlintCursor::after_end(), FlintCursor::current_key, FlintCursor::current_tag, display_nicely(), FlintCursor::next(), FlintCursor::prev(), and FlintCursor::read_tag().
Referenced by main().
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
Definition at line 133 of file xapian-inspect.cc.
References FlintCursor::after_end(), FlintCursor::current_key, FlintCursor::current_tag, dir_exists(), display_nicely(), do_until(), FlintTable::empty(), endswith(), file_exists(), FlintCursor::find_entry(), Xapian::Error::get_description(), gnu_getopt_long(), 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().
| static void show_help | ( | ) | [static] |
| static void show_usage | ( | ) | [static] |