strus  0.17
databaseBackupCursorInterface.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014 Patrick P. Frey
3  *
4  * This Source Code Form is subject to the terms of the Mozilla Public
5  * License, v. 2.0. If a copy of the MPL was not distributed with this
6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7  */
10 #ifndef _STRUS_STORAGE_DATABASE_BACKUP_CURSOR_INTERFACE_HPP_INCLUDED
11 #define _STRUS_STORAGE_DATABASE_BACKUP_CURSOR_INTERFACE_HPP_INCLUDED
12 #include <string>
13 
14 namespace strus
15 {
16 
19 {
20 public:
23 
30  virtual bool fetch(
31  const char*& key,
32  std::size_t& keysize,
33  const char*& blk,
34  std::size_t& blksize)=0;
35 };
36 }//namespace
37 #endif
38 
virtual bool fetch(const char *&key, std::size_t &keysize, const char *&blk, std::size_t &blksize)=0
Fetches then next block to backup.
Database cursor interface that can be used for backup.
Definition: databaseBackupCursorInterface.hpp:18
virtual ~DatabaseBackupCursorInterface()
Destructor.
Definition: databaseBackupCursorInterface.hpp:22