hce-node application
1.4.3
HCE Hierarchical Cluster Engine node application
Main Page
Namespaces
Classes
Files
File List
File Members
hce-node application
HCE project node model
Namespaces
Classes
Files
File List
sources
src
utils
algorithms
applicationFramework
asmXMLParser
base64
coreDumpChecker
DRCE
exec
HCECSM
jsonObjExtractor
kvdb
src
citrusleaf
Exceptions
Aerospike.cpp
Aerospike.hpp
BaseDB.hpp
DataBaseDriverConfig.cpp
DataBaseDriverConfig.hpp
Errors.hpp
FakeDB.hpp
HCETimer.hpp
LevelDB.cpp
LevelDB.hpp
ORMFunctionalObject.cpp
ORMFunctionalObject.hpp
Response.hpp
Voldemort.cpp
Voldemort.hpp
tests
messageStream
reduceAdditionCore
reduceCore
reduceDRCE
reduceHandler
reduceSphinx
refine
serializable
sphinx
types
xmlCleaner
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
FakeDB.hpp
Go to the documentation of this file.
1
15
#ifndef FAKE_DB_HPP
16
#define FAKE_DB_HPP
17
18
22
#include "
BaseDB.hpp
"
23
27
#include <Poco/SharedPtr.h>
28
32
#include <string>
33
#include <iostream>
34
35
36
namespace
HCE
37
{
38
39
40
class
FakeDB
:
public
BaseDB
41
{
42
public
:
43
FakeDB
() {}
44
virtual
~FakeDB
() {}
45
public
:
46
void
put
(
const
std::string&
key
,
const
std::string& value) {
47
#ifdef _DEBUG_
48
std::cout <<
"FakeDB:put()\n"
;
49
#endif
50
}
51
virtual
std::string
get
(
const
std::string&
key
) {
52
#ifdef _DEBUG_
53
std::cout <<
"FakeDB:get()\n"
;
54
#endif
55
return
key
;
56
}
57
virtual
std::vector<std::string>
get_all
() {
58
#ifdef _DEBUG_
59
std::cout <<
"FakeDB:get_all()\n"
;
60
#endif
61
}
62
virtual
void
del
(
const
std::string&
key
) {
63
#ifdef _DEBUG_
64
std::cout <<
"FakeDB:del()\n"
;
65
#endif
66
}
67
inline
int
getLastError
()
const
{
return
_error
;}
68
};
69
70
71
}
72
73
74
#endif
sources
utils
kvdb
src
FakeDB.hpp
Generated on Tue Jun 30 2015 19:42:14 for hce-node application by
1.8.1.2