#include <dbInterface.hpp>
This class is the interface to the in-memory DB. 
      
        
          | fcf::devmgr::common::DbInterface::DbInterface | ( | const std::string & | prefix, | 
        
          |  |  | rad::DbAdapter & | runtime_db | 
        
          |  | ) |  |  | 
      
 
Constructor.
- Parameters
- 
  
    | [in] | prefix | String used as prefix when building the keys. |  | [in] | runtime_db | Reference to the in-memory DB adapter. |  
 
 
 
  
  | 
        
          | fcf::devmgr::common::DbInterface::~DbInterface | ( |  | ) |  |  | virtual | 
 
 
  
  | 
        
          | fcf::devmgr::common::DbInterface::DbInterface | ( | const DbInterface & |  | ) |  |  | delete | 
 
Disable copy constructor. 
 
 
      
        
          | std::string fcf::devmgr::common::DbInterface::Get | ( | const std::string & | key | ) |  | 
      
 
- Parameters
- 
  
  
- Returns
- The value stored in the DB associated to the given key. 
 
 
      
        
          | std::string fcf::devmgr::common::DbInterface::GetControlState | ( |  | ) |  | 
      
 
- Returns
- The current state of the application stored in the DB. 
 
 
      
        
          | std::string fcf::devmgr::common::DbInterface::GetControlStatus | ( |  | ) |  | 
      
 
- Returns
- The current state and sub-state of the application stored in the DB. 
 
 
      
        
          | std::string fcf::devmgr::common::DbInterface::GetControlSubstate | ( |  | ) |  | 
      
 
- Returns
- The current sub-state of the application stored in the DB. 
 
 
      
        
          | void fcf::devmgr::common::DbInterface::MultiSet | ( | std::vector< std::string > & | kvs | ) |  | 
      
 
- Parameters
- 
  
    | [in] | kvs | Vector of keyword/value to be stored in the DB. |  
 
 
 
Disable assignment operator. 
 
 
      
        
          | void fcf::devmgr::common::DbInterface::Set | ( | const std::string & | key, | 
        
          |  |  | const std::string & | value | 
        
          |  | ) |  |  | 
      
 
- Parameters
- 
  
    | [in] | key | Key to be written in the DB. |  | [in] | value | Value, associated to the given key, to be written in the DB. |  
 
 
 
      
        
          | void fcf::devmgr::common::DbInterface::SetConfig | ( | const std::string & | req_endpoint, | 
        
          |  |  | const std::string & | db_endpoint, | 
        
          |  |  | const timeval & | db_timeout, | 
        
          |  |  | const std::string & | scxml_filename, | 
        
          |  |  | const std::string & | config_filename, | 
        
          |  |  | const std::string & | log_level | 
        
          |  | ) |  |  | 
      
 
Set the application configuration information in the DB.
- Parameters
- 
  
    | [in] | req_endpoint | Request msg endpoint. |  | [in] | db_endpoint | DB endpoint information. |  | [in] | db_timeout | DB connection timeout. |  | [in] | scxml_filename | SCXML configuration. |  | [in] | config_filename | Server configuration. |  | [in] | log_level | Logging level. |  
 
 
 
      
        
          | void fcf::devmgr::common::DbInterface::SetControl | ( | const std::string & | state, | 
        
          |  |  | const std::string & | substate | 
        
          |  | ) |  |  | 
      
 
Set the application control information in the DB.
- Parameters
- 
  
    | [in] | state | State to be stored in the DB. |  | [in] | substate | Substate to be stored in the DB. |  
 
 
 
      
        
          | void fcf::devmgr::common::DbInterface::SetControl | ( | const short | state, | 
        
          |  |  | const short | substate | 
        
          |  | ) |  |  | 
      
 
Set the application control information in the DB.
- Parameters
- 
  
    | [in] | state | State to be stored in the DB. |  | [in] | substate | Substate to be stored in the DB. |  
 
 
 
      
        
          | void fcf::devmgr::common::DbInterface::SetControlState | ( | const std::string & | value | ) |  | 
      
 
- Parameters
- 
  
    | [in] | value | State to be stored in the DB. |  
 
 
 
      
        
          | void fcf::devmgr::common::DbInterface::SetControlStatus | ( | const std::string & | value | ) |  | 
      
 
- Parameters
- 
  
    | [in] | value | Status (state and substate) to be stored in the DB. |  
 
 
 
      
        
          | void fcf::devmgr::common::DbInterface::SetControlSubstate | ( | const std::string & | value | ) |  | 
      
 
- Parameters
- 
  
    | [in] | value | Sub-state to be stored in the DB. |  
 
 
 
The documentation for this class was generated from the following files: