BackendManagerFlint Class Reference

BackendManager subclass for flint databases. More...

#include <backendmanager_flint.h>

Inheritance diagram for BackendManagerFlint:

Inheritance graph
[legend]
Collaboration diagram for BackendManagerFlint:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 BackendManagerFlint ()
std::string get_dbtype () const
 Return a string representing the current database type.
Xapian::WritableDatabase get_writable_database (const std::string &name, const std::string &file)
 Create a Flint Xapian::WritableDatabase object indexing a single file.
std::string get_writable_database_path (const std::string &name)
 Get the path of Flint Xapian::WritableDatabase instance.
Xapian::Database get_writable_database_as_database ()
 Create a Database object for the last opened WritableDatabase.
Xapian::WritableDatabase get_writable_database_again ()
 Create a WritableDatabase object for the last opened WritableDatabase.

Protected Member Functions

std::string do_get_database_path (const std::vector< std::string > &files)
 Get the path of Flint Xapian::Database instance.

Private Member Functions

void operator= (const BackendManagerFlint &)
 Don't allow assignment.
 BackendManagerFlint (const BackendManagerFlint &)
 Don't allow copying.

Private Attributes

std::string last_wdb_name
 The path of the last writable database used.


Detailed Description

BackendManager subclass for flint databases.

Definition at line 35 of file backendmanager_flint.h.


Constructor & Destructor Documentation

BackendManagerFlint::BackendManagerFlint ( const BackendManagerFlint  )  [private]

Don't allow copying.

BackendManagerFlint::BackendManagerFlint (  )  [inline]

Definition at line 50 of file backendmanager_flint.h.


Member Function Documentation

string BackendManagerFlint::do_get_database_path ( const std::vector< std::string > &  files  )  [protected, virtual]

Get the path of Flint Xapian::Database instance.

Reimplemented from BackendManager.

Definition at line 34 of file backendmanager_flint.cc.

References BackendManager::createdb_flint().

std::string BackendManagerFlint::get_dbtype (  )  const [virtual]

Return a string representing the current database type.

Reimplemented from BackendManager.

Definition at line 28 of file backendmanager_flint.cc.

Xapian::WritableDatabase BackendManagerFlint::get_writable_database ( const std::string &  name,
const std::string &  file 
) [virtual]

Create a Flint Xapian::WritableDatabase object indexing a single file.

Reimplemented from BackendManager.

Definition at line 40 of file backendmanager_flint.cc.

References BackendManager::getwritedb_flint(), and last_wdb_name.

Xapian::WritableDatabase BackendManagerFlint::get_writable_database_again (  )  [virtual]

Create a WritableDatabase object for the last opened WritableDatabase.

Reimplemented from BackendManager.

Definition at line 60 of file backendmanager_flint.cc.

References Xapian::DB_OPEN, last_wdb_name, and Xapian::InMemory::open().

Xapian::Database BackendManagerFlint::get_writable_database_as_database (  )  [virtual]

Create a Database object for the last opened WritableDatabase.

Reimplemented from BackendManager.

Definition at line 54 of file backendmanager_flint.cc.

References last_wdb_name, and Xapian::InMemory::open().

string BackendManagerFlint::get_writable_database_path ( const std::string &  name  )  [virtual]

Get the path of Flint Xapian::WritableDatabase instance.

Reimplemented from BackendManager.

Definition at line 48 of file backendmanager_flint.cc.

References BackendManager::getwritedb_flint_path().

void BackendManagerFlint::operator= ( const BackendManagerFlint  )  [private]

Don't allow assignment.


Member Data Documentation

std::string BackendManagerFlint::last_wdb_name [private]

The path of the last writable database used.

Definition at line 43 of file backendmanager_flint.h.

Referenced by get_writable_database(), get_writable_database_again(), and get_writable_database_as_database().


The documentation for this class was generated from the following files:

Documentation for Xapian (version 1.2.13).
Generated on 9 Jan 2013 by Doxygen 1.5.9.