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
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
kvdb
src
FakeDB.hpp
Generated on Mon Jan 13 2014 13:08:37 for HCE project C++ developers source code library by
1.8.1.2