xapian-core  1.4.19
Classes | Macros | Functions
xapian-pos.cc File Reference

Debug positional data. More...

#include <config.h>
#include <xapian.h>
#include <xapian/iterator.h>
#include <iostream>
#include <algorithm>
#include <cerrno>
#include <cstdlib>
#include <limits>
#include "gnu_getopt.h"
#include "stringutils.h"
+ Include dependency graph for xapian-pos.cc:

Go to the source code of this file.

Classes

class  Pos
 
struct  PosCmp
 

Macros

#define PROG_NAME   "xapian-pos"
 
#define PROG_DESC   "Debug positional data in a Xapian database"
 
#define OPT_HELP   1
 
#define OPT_VERSION   2
 

Functions

static void show_usage ()
 
template<typename T >
bool to_unsigned_int (const char *s, T &result)
 
int main (int argc, char **argv)
 

Detailed Description

Debug positional data.

Definition in file xapian-pos.cc.

Macro Definition Documentation

◆ OPT_HELP

#define OPT_HELP   1

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

Referenced by main().

◆ OPT_VERSION

#define OPT_VERSION   2

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

Referenced by main().

◆ PROG_DESC

#define PROG_DESC   "Debug positional data in a Xapian database"

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

Referenced by main().

◆ PROG_NAME

#define PROG_NAME   "xapian-pos"

Definition at line 39 of file xapian-pos.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 46 of file xapian-pos.cc.

References PROG_NAME.

Referenced by main().

◆ to_unsigned_int()

template<typename T >
bool to_unsigned_int ( const char *  s,
T &  result 
)

Definition at line 91 of file xapian-pos.cc.

Referenced by main().