LCOV - code coverage report
Current view: top level - harness - backendmanager_chert.h (source / functions) Hit Total Coverage
Test: Test Coverage for xapian-core r Lines: 0 2 0.0 %
Date: 2011-08-21 Functions: 0 3 0.0 %
Branches: 0 4 0.0 %

           Branch data     Line data    Source code
       1                 :            : /** @file backendmanager_chert.h
       2                 :            :  * @brief BackendManager subclass for chert databases.
       3                 :            :  */
       4                 :            : /* Copyright (C) 2007,2008,2009 Olly Betts
       5                 :            :  *
       6                 :            :  * This program is free software; you can redistribute it and/or
       7                 :            :  * modify it under the terms of the GNU General Public License as
       8                 :            :  * published by the Free Software Foundation; either version 2 of the
       9                 :            :  * License, or (at your option) any later version.
      10                 :            :  *
      11                 :            :  * This program is distributed in the hope that it will be useful,
      12                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      13                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      14                 :            :  * GNU General Public License for more details.
      15                 :            :  *
      16                 :            :  * You should have received a copy of the GNU General Public License
      17                 :            :  * along with this program; if not, write to the Free Software
      18                 :            :  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
      19                 :            :  */
      20                 :            : 
      21                 :            : #ifndef XAPIAN_INCLUDED_BACKENDMANAGER_CHERT_H
      22                 :            : #define XAPIAN_INCLUDED_BACKENDMANAGER_CHERT_H
      23                 :            : 
      24                 :            : #include "backendmanager.h"
      25                 :            : 
      26                 :            : #include <string>
      27                 :            : 
      28                 :            : #include <xapian/base.h>
      29                 :            : #include <xapian/types.h>
      30                 :            : #include <xapian/postingiterator.h>
      31                 :            : 
      32                 :            : #include "positionlist.h"
      33                 :            : 
      34                 :            : /// BackendManager subclass for chert databases.
      35 [ #  # ][ #  # ]:          0 : class BackendManagerChert : public BackendManager {
      36                 :            :     /// Don't allow assignment.
      37                 :            :     void operator=(const BackendManagerChert &);
      38                 :            : 
      39                 :            :     /// Don't allow copying.
      40                 :            :     BackendManagerChert(const BackendManagerChert &);
      41                 :            : 
      42                 :            :     /// The path of the last writable database used.
      43                 :            :     std::string last_wdb_name;
      44                 :            : 
      45                 :            :   private:
      46                 :            :     /// Get the path of Chert Xapian::Database instance.
      47                 :            :     std::string do_get_database_path(const std::vector<std::string> & files);
      48                 :            : 
      49                 :            :   public:
      50                 :          0 :     BackendManagerChert() { }
      51                 :            : 
      52                 :            :     /// Return a string representing the current database type.
      53                 :            :     std::string get_dbtype() const;
      54                 :            : 
      55                 :            :     /// Create a Chert Xapian::WritableDatabase object indexing a single file.
      56                 :            :     Xapian::WritableDatabase get_writable_database(const std::string & name,
      57                 :            :                                                    const std::string & file);
      58                 :            : 
      59                 :            :     /// Get the path of Chert Xapian::WritableDatabase instance.
      60                 :            :     std::string get_writable_database_path(const std::string & name);
      61                 :            : 
      62                 :            :     /// Create a Database object for the last opened WritableDatabase.
      63                 :            :     Xapian::Database get_writable_database_as_database();
      64                 :            : 
      65                 :            :     /// Create a WritableDatabase object for the last opened WritableDatabase.
      66                 :            :     Xapian::WritableDatabase get_writable_database_again();
      67                 :            : };
      68                 :            : 
      69                 :            : #endif // XAPIAN_INCLUDED_BACKENDMANAGER_CHERT_H

Generated by: LCOV version 1.8