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
Voldemort.hpp
Go to the documentation of this file.
1
15
#ifndef VOLDEMORT_DB_HPP
16
#define VOLDEMORT_DB_HPP
17
18
22
#include "
BaseDB.hpp
"
23
27
#include <list>
28
#include <string>
29
#include <iostream>
30
34
#include <Poco/SharedPtr.h>
35
39
#include "voldemort/voldemort.h"
40
41
42
namespace
HCE
43
{
44
45
46
class
VoldemortDB
:
public
BaseDB
47
{
48
public
:
49
VoldemortDB
();
50
virtual
~VoldemortDB
();
51
public
:
52
void
setDatabaseName
(
const
std::string&);
53
void
put
(
const
std::string& key,
const
std::string& value);
54
virtual
std::string
get
(
const
std::string& key);
55
virtual
std::vector<std::string>
get_all
();
56
virtual
void
del
(
const
std::string& key);
57
inline
int
getLastError
()
const
{
return
_error
;}
58
private
:
59
Voldemort::ClientConfig _config;
60
Poco::SharedPtr<Voldemort::SocketStoreClientFactory> _factory;
61
Poco::SharedPtr<Voldemort::StoreClient> _client;
62
};
63
64
65
}
66
67
68
#endif
sources
kvdb
src
Voldemort.hpp
Generated on Mon Jan 13 2014 13:08:37 for HCE project C++ developers source code library by
1.8.1.2