HCE project C++ developers source code library
1.1.1
HCE project developer library
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
LevelDB.hpp
Go to the documentation of this file.
1
15
#ifndef LEVEL_DB_HPP
16
#define LEVEL_DB_HPP
17
18
22
#include "
BaseDB.hpp
"
23
#include "
Logger.hpp
"
24
28
#include <string>
29
#include <iostream>
30
34
#include "leveldb/db.h"
35
36
namespace
HCE
37
{
38
39
class
LevelDB
:
public
BaseDB
40
{
41
public
:
42
LevelDB
();
43
virtual
~LevelDB
();
44
public
:
45
void
setDatabaseName
(
const
std::string&);
46
virtual
void
put
(
const
std::string& key,
const
std::string& value);
47
virtual
std::string
get
(
const
std::string& key);
48
virtual
std::vector<std::string>
get_all
();
49
virtual
void
del
(
const
std::string& key);
50
inline
int
getLastError
()
const
{
return
BaseDB::_error
; }
51
private
:
52
leveldb::DB* _db;
53
leveldb::Options _options;
54
//leveldb::Status _status;
55
};
56
57
}
58
59
#endif
60
sources
kvdb
src
LevelDB.hpp
Generated on Mon Jan 13 2014 13:08:37 for HCE project C++ developers source code library by
1.8.1.2