|
ifw-fcf
4.0.0
|
#include <dbInterface.hpp>
Public Member Functions | |
| DbInterface (const std::string &prefix, const std::string &db_endpoint, const timeval &db_timeout) | |
| bool | IsConnected () const |
| void | SetStates (const std::string &prefix, const std::string &state, const std::string &substate) |
| void | BatchSet (const utils::bat::DbVector &vec) |
| template<typename T > | |
| void | Set (const std::string &key, const T &value) |
| DbInterface (const DbInterface &)=delete | |
| Disable copy constructor. More... | |
| DbInterface & | operator= (const DbInterface &)=delete |
| Disable assignment operator. More... | |
This class is the interface to the in-memory DB.
| fcf::devmgr::common::DbInterface::DbInterface | ( | const std::string & | prefix, |
| const std::string & | db_endpoint, | ||
| const timeval & | db_timeout | ||
| ) |
Constructor.
| [in] | prefix | String used as prefix when building the keys. |
|
delete |
Disable copy constructor.
| void fcf::devmgr::common::DbInterface::BatchSet | ( | const utils::bat::DbVector & | vec | ) |
|
inline |
|
delete |
Disable assignment operator.
| void fcf::devmgr::common::DbInterface::Set | ( | const std::string & | key, |
| const T & | value | ||
| ) |
| void fcf::devmgr::common::DbInterface::SetStates | ( | const std::string & | prefix, |
| const std::string & | state, | ||
| const std::string & | substate | ||
| ) |