backends/quartz/quartz_metafile.cc File Reference

#include <config.h>
#include <xapian/error.h>
#include <string>
#include "quartz_metafile.h"
#include "btree_util.h"
#include "omassert.h"
#include "omdebug.h"
#include "stringutils.h"
#include "utils.h"

Include dependency graph for quartz_metafile.cc:

Go to the source code of this file.

Functions

static string encode_version (unsigned int version)
static unsigned int decode_version (const string &s)

Variables

static const string metafile_magic = "OMMETA"
static const unsigned int metafile_version = 1
static const size_t min_metafile_size = metafile_magic.length() + 4
static const size_t max_metafile_size = min_metafile_size


Function Documentation

static string encode_version ( unsigned int  version  )  [static]

Definition at line 45 of file quartz_metafile.cc.

Referenced by QuartzMetaFile::create().

static unsigned int decode_version ( const string &  s  )  [static]

Definition at line 57 of file quartz_metafile.cc.

Referenced by QuartzMetaFile::open().


Variable Documentation

const string metafile_magic = "OMMETA" [static]

Definition at line 38 of file quartz_metafile.cc.

Referenced by QuartzMetaFile::create(), and QuartzMetaFile::open().

const unsigned int metafile_version = 1 [static]

Definition at line 39 of file quartz_metafile.cc.

Referenced by QuartzMetaFile::create(), and QuartzMetaFile::open().

const size_t min_metafile_size = metafile_magic.length() + 4 [static]

Definition at line 41 of file quartz_metafile.cc.

Referenced by QuartzMetaFile::open().

const size_t max_metafile_size = min_metafile_size [static]

Definition at line 43 of file quartz_metafile.cc.


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