HCE project C++ developers source code library
1.1.1
HCE project developer library
|
#include <FakeDB.hpp>
Public Member Functions | |
FakeDB () | |
virtual | ~FakeDB () |
void | put (const std::string &key, const std::string &value) |
put document with given ID to Search Engine | |
virtual std::string | get (const std::string &key) |
get document with given ID from Search Engine | |
virtual std::vector< std::string > | get_all () |
get all documents with given ID from Search Engine | |
virtual void | del (const std::string &key) |
delete document with given ID from Search Engine | |
int | getLastError () const |
get status last performed operation. Must be called after method to get operation's status | |
Public Member Functions inherited from HCE::BaseDB | |
BaseDB () | |
virtual | ~BaseDB () |
virtual void | setDatabaseName (const std::string &dbName) |
set the database name | |
virtual void | setDriverUrl (const std::string &dbUrl) |
set the driver URL |
Additional Inherited Members | |
Public Types inherited from HCE::BaseDB | |
typedef Poco::SharedPtr < HCE::BaseDB > | BaseDBPtr |
Protected Attributes inherited from HCE::BaseDB | |
std::string | _dbName |
std::list< std::string > | _bootstrapUrls |
STATUS | _error |
class FakeDB
Definition at line 40 of file FakeDB.hpp.
|
inline |
Definition at line 43 of file FakeDB.hpp.
|
inlinevirtual |
Definition at line 44 of file FakeDB.hpp.
|
inlinevirtual |
delete document with given ID from Search Engine
A pure virtual member.
key | the document's ID method must set _error to operation's result state: ACTION_SUCCESS - operation was completed successfully ACTION_GENERAL_FAILURE - operation was failed |
Implements HCE::BaseDB.
Definition at line 62 of file FakeDB.hpp.
|
inlinevirtual |
get document with given ID from Search Engine
A pure virtual member.
key | the document's ID method must set _error to operation's result state: DOCUMENT_PRESENT - operation was completed successfully (document was present) DOCUMENT_NOT_PRESENT - operation was failed (document wasn't present) |
Implements HCE::BaseDB.
Definition at line 51 of file FakeDB.hpp.
|
inlinevirtual |
get all documents with given ID from Search Engine
A pure virtual member.
key | the document's ID method must set _error to operation's result state: DOCUMENT_PRESENT - operation was completed successfully (document was present) DOCUMENT_NOT_PRESENT - operation was failed (document wasn't present) |
Implements HCE::BaseDB.
Definition at line 57 of file FakeDB.hpp.
|
inlinevirtual |
get status last performed operation. Must be called after method to get operation's status
A pure virtual member.
Implements HCE::BaseDB.
Definition at line 67 of file FakeDB.hpp.
|
inlinevirtual |
put document with given ID to Search Engine
A pure virtual member.
key | the document's ID |
value | the document itself method must set _error to operation's result state: ACTION_SUCCESS - operation was completed successfully ACTION_GENERAL_FAILURE - operation was failed |
Implements HCE::BaseDB.
Definition at line 46 of file FakeDB.hpp.