#include <backendmanager_flint.h>
Inheritance diagram for BackendManagerFlint:
Public Member Functions | |
BackendManagerFlint () | |
virtual | ~BackendManagerFlint () |
We have virtual methods and want to be able to delete derived classes using a pointer to the base class, so we need a virtual destructor. | |
const char * | get_dbtype () const |
Return a string representing the current database type. | |
Xapian::Database | get_database (const std::vector< std::string > &files) |
Create a Flint Xapian::Database object indexing multiple files. | |
Xapian::Database | get_database (const std::string &file) |
Create a Flint Xapian::Database object indexing a single file. | |
Xapian::WritableDatabase | get_writable_database (const std::string &name, const std::string &file) |
Create a Flint Xapian::WritableDatabase object indexing a single file. | |
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. | |
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. |
Definition at line 35 of file backendmanager_flint.h.
BackendManagerFlint::BackendManagerFlint | ( | const BackendManagerFlint & | ) | [private] |
Don't allow copying.
BackendManagerFlint::BackendManagerFlint | ( | ) | [inline] |
Definition at line 46 of file backendmanager_flint.h.
BackendManagerFlint::~BackendManagerFlint | ( | ) | [virtual] |
We have virtual methods and want to be able to delete derived classes using a pointer to the base class, so we need a virtual destructor.
Definition at line 27 of file backendmanager_flint.cc.
void BackendManagerFlint::operator= | ( | const BackendManagerFlint & | ) | [private] |
Don't allow assignment.
const char * BackendManagerFlint::get_dbtype | ( | ) | const [virtual] |
Return a string representing the current database type.
Reimplemented from BackendManager.
Definition at line 30 of file backendmanager_flint.cc.
Xapian::Database BackendManagerFlint::get_database | ( | const std::vector< std::string > & | files | ) | [virtual] |
Xapian::Database BackendManagerFlint::get_database | ( | const std::string & | file | ) | [virtual] |
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.
Xapian::Database BackendManagerFlint::get_writable_database_as_database | ( | ) | [virtual] |
Create a Database object for the last opened WritableDatabase.
Reimplemented from BackendManager.
Definition at line 56 of file backendmanager_flint.cc.
References last_wdb_name, and Xapian::Flint::open().
Xapian::WritableDatabase BackendManagerFlint::get_writable_database_again | ( | ) | [virtual] |
Create a WritableDatabase object for the last opened WritableDatabase.
Reimplemented from BackendManager.
Definition at line 62 of file backendmanager_flint.cc.
References Xapian::DB_OPEN, last_wdb_name, and Xapian::Flint::open().
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_again(), and get_writable_database_as_database().