ifw-fcf  4.0.0
Public Member Functions | List of all members
fcf::devmgr::common::DbInterface Class Reference

#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...
 
DbInterfaceoperator= (const DbInterface &)=delete
 Disable assignment operator. More...
 

Detailed Description

This class is the interface to the in-memory DB.

Constructor & Destructor Documentation

◆ DbInterface() [1/2]

fcf::devmgr::common::DbInterface::DbInterface ( const std::string &  prefix,
const std::string &  db_endpoint,
const timeval &  db_timeout 
)

Constructor.

Parameters
[in]prefixString used as prefix when building the keys.

◆ DbInterface() [2/2]

fcf::devmgr::common::DbInterface::DbInterface ( const DbInterface )
delete

Disable copy constructor.

Member Function Documentation

◆ BatchSet()

void fcf::devmgr::common::DbInterface::BatchSet ( const utils::bat::DbVector &  vec)

◆ IsConnected()

bool fcf::devmgr::common::DbInterface::IsConnected ( ) const
inline

◆ operator=()

DbInterface& fcf::devmgr::common::DbInterface::operator= ( const DbInterface )
delete

Disable assignment operator.

◆ Set()

template<typename T >
void fcf::devmgr::common::DbInterface::Set ( const std::string &  key,
const T &  value 
)

◆ SetStates()

void fcf::devmgr::common::DbInterface::SetStates ( const std::string &  prefix,
const std::string &  state,
const std::string &  substate 
)

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