BackendManagerRemoteProg Class Reference

BackendManager subclass for remoteprog databases. More...

#include <backendmanager_remoteprog.h>

Inheritance diagram for BackendManagerRemoteProg:

Inheritance graph
[legend]
Collaboration diagram for BackendManagerRemoteProg:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 BackendManagerRemoteProg ()
virtual ~BackendManagerRemoteProg ()
 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 RemoteProg Xapian::Database object indexing multiple files.
Xapian::Database get_database (const std::string &file)
 Create a RemoteProg Xapian::Database object indexing a single file.
Xapian::WritableDatabase get_writable_database (const std::string &name, const std::string &file)
 Create a RemoteProg Xapian::WritableDatabase object indexing a single file.
Xapian::Database get_remote_database (const std::vector< std::string > &files, unsigned int timeout)
 Create a RemoteProg Xapian::Database with the specified timeout.
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 BackendManagerRemoteProg &)
 Don't allow assignment.
 BackendManagerRemoteProg (const BackendManagerRemoteProg &)
 Don't allow copying.

Private Attributes

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

Detailed Description

BackendManager subclass for remoteprog databases.

Definition at line 35 of file backendmanager_remoteprog.h.


Constructor & Destructor Documentation

BackendManagerRemoteProg::BackendManagerRemoteProg ( const BackendManagerRemoteProg  )  [private]

Don't allow copying.

BackendManagerRemoteProg::BackendManagerRemoteProg (  )  [inline]

Definition at line 46 of file backendmanager_remoteprog.h.

BackendManagerRemoteProg::~BackendManagerRemoteProg (  )  [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 35 of file backendmanager_remoteprog.cc.


Member Function Documentation

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

Don't allow assignment.

const char * BackendManagerRemoteProg::get_dbtype (  )  const [virtual]

Return a string representing the current database type.

Reimplemented from BackendManager.

Definition at line 38 of file backendmanager_remoteprog.cc.

Xapian::Database BackendManagerRemoteProg::get_database ( const std::vector< std::string > &  files  )  [virtual]

Create a RemoteProg Xapian::Database object indexing multiple files.

Reimplemented from BackendManager.

Xapian::Database BackendManagerRemoteProg::get_database ( const std::string &  file  )  [virtual]

Create a RemoteProg Xapian::Database object indexing a single file.

Reimplemented from BackendManager.

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

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

Reimplemented from BackendManager.

Xapian::Database BackendManagerRemoteProg::get_remote_database ( const std::vector< std::string > &  files,
unsigned int  timeout 
) [virtual]

Create a RemoteProg Xapian::Database with the specified timeout.

Reimplemented from BackendManager.

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

Create a Database object for the last opened WritableDatabase.

Reimplemented from BackendManager.

Definition at line 108 of file backendmanager_remoteprog.cc.

References last_wdb_name, Xapian::Remote::open(), and XAPIAN_PROGSRV.

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

Create a WritableDatabase object for the last opened WritableDatabase.

Reimplemented from BackendManager.

Definition at line 128 of file backendmanager_remoteprog.cc.

References last_wdb_name, Xapian::Remote::open_writable(), and XAPIAN_PROGSRV.


Member Data Documentation

std::string BackendManagerRemoteProg::last_wdb_name [private]

The path of the last writable database used.

Definition at line 43 of file backendmanager_remoteprog.h.

Referenced by 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.0.10).
Generated on 24 Dec 2008 by Doxygen 1.5.2.