hce-node application
1.4.3
HCE Hierarchical Cluster Engine node application
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
utils
kvdb
src
LevelDB.hpp
Generated on Tue Jun 30 2015 19:42:14 for hce-node application by
1.8.1.2