Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
dev::rpc::MemoryDB Class Reference

#include <MemoryDB.h>

Inheritance diagram for dev::rpc::MemoryDB:
[legend]
Collaboration diagram for dev::rpc::MemoryDB:
[legend]

Public Member Functions

virtual RPCModules implementedModules () const override
 
virtual bool db_put (std::string const &_name, std::string const &_key, std::string const &_value) override
 
virtual std::string db_get (std::string const &_name, std::string const &_key) override
 
- Public Member Functions inherited from dev::rpc::DBFace
 DBFace ()
 
virtual void db_putI (const Json::Value &request, Json::Value &response)
 
virtual void db_getI (const Json::Value &request, Json::Value &response)
 
- Public Member Functions inherited from ServerInterface< DBFace >
virtual ~ServerInterface ()
 
Methods const & methods () const
 
Notifications const & notifications () const
 

Private Attributes

std::map< std::string, std::string > m_db
 

Additional Inherited Members

- Public Types inherited from ServerInterface< DBFace >
using MethodPointer = AbstractMethodPointer< DBFace >
 
using NotificationPointer = AbstractNotificationPointer< DBFace >
 
using MethodBinding = std::tuple< jsonrpc::Procedure, AbstractMethodPointer< DBFace >>
 
using NotificationBinding = std::tuple< jsonrpc::Procedure, AbstractNotificationPointer< DBFace >>
 
using Methods = std::vector< MethodBinding >
 
using Notifications = std::vector< NotificationBinding >
 
using RPCModules = std::vector< RPCModule >
 
- Protected Member Functions inherited from ServerInterface< DBFace >
void bindAndAddMethod (jsonrpc::Procedure const &_proc, MethodPointer _pointer)
 
void bindAndAddNotification (jsonrpc::Procedure const &_proc, NotificationPointer _pointer)
 

Detailed Description

Definition at line 32 of file MemoryDB.h.

Member Function Documentation

std::string MemoryDB::db_get ( std::string const &  _name,
std::string const &  _key 
)
overridevirtual

Implements dev::rpc::DBFace.

Definition at line 35 of file MemoryDB.cpp.

Here is the caller graph for this function:

bool MemoryDB::db_put ( std::string const &  _name,
std::string const &  _key,
std::string const &  _value 
)
overridevirtual

Implements dev::rpc::DBFace.

Definition at line 28 of file MemoryDB.cpp.

Here is the caller graph for this function:

virtual RPCModules dev::rpc::MemoryDB::implementedModules ( ) const
inlineoverridevirtual
Returns
which interfaces (eth, admin, db, ...) this class implements in which version.

Implements ServerInterface< DBFace >.

Definition at line 35 of file MemoryDB.h.

Here is the call graph for this function:

Member Data Documentation

std::map<std::string, std::string> dev::rpc::MemoryDB::m_db
private

Definition at line 43 of file MemoryDB.h.


The documentation for this class was generated from the following files: