ifw  0.0.1-dev
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
server::DbInterface Class Reference

#include <dbInterface.hpp>

Public Member Functions

 DbInterface (const std::string &prefix, rad::DbAdapter &runtime_db)
 
virtual ~DbInterface ()
 
std::string GetControlState ()
 
std::string GetControlSubstate ()
 
std::string GetControlStatus ()
 
std::string Get (const std::string &key)
 
void SetControlState (const std::string &value)
 
void SetControlSubstate (const std::string &value)
 
void SetControlStatus (const std::string &value)
 
void SetControl (const std::string &state, const std::string &substate, const std::string &status)
 
void 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)
 
void Set (const std::string &key, const std::string &value)
 
 DbInterface (const DbInterface &)=delete
 
DbInterfaceoperator= (const DbInterface &)=delete
 Disable copy constructor. More...
 
 DbInterface (const std::string &prefix, rad::DbAdapter &runtimeDb)
 
virtual ~DbInterface ()
 
std::string GetControlState ()
 
std::string GetControlSubstate ()
 
std::string GetControlStatus ()
 
std::string Get (const std::string &key)
 
void SetControlState (const std::string &value)
 
void SetControlSubstate (const std::string &value)
 
void SetControlStatus (const std::string &value)
 
void SetControl (const std::string &state, const std::string &substate, const std::string &status)
 
void SetConfig (const std::string &reqEndpoint, const std::string &dbEndpoint, const timeval &dbTimeout, const std::string &scxmlFilename, const std::string &configFilename, const std::string &logLevel)
 
void SetDataDevMeas (const std::string &timeStamp, const double x, const double y)
 
void Set (const std::string &key, const std::string &value)
 
 DbInterface (const DbInterface &)=delete
 
DbInterfaceoperator= (const DbInterface &)=delete
 Disable copy constructor. More...
 
 DbInterface (const std::string &prefix, rad::DbAdapter &runtime_db)
 
virtual ~DbInterface ()
 
std::string GetControlState ()
 
std::string GetControlSubstate ()
 
std::string GetControlStatus ()
 
std::string Get (const std::string &key)
 
void SetControlState (const std::string &value)
 
void SetControlSubstate (const std::string &value)
 
void SetControlStatus (const std::string &value)
 
void SetControl (const std::string &state, const std::string &substate, const std::string &status)
 
void 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)
 
void Set (const std::string &key, const std::string &value)
 
 DbInterface (const DbInterface &)=delete
 
DbInterfaceoperator= (const DbInterface &)=delete
 Disable copy constructor. More...
 
 DbInterface (const std::string &prefix, rad::DbAdapter &runtimeDb)
 
virtual ~DbInterface ()
 
std::string GetControlState ()
 
std::string GetControlSubstate ()
 
std::string GetControlStatus ()
 
std::string Get (const std::string &key)
 
void SetControlState (const std::string &value)
 
void SetControlSubstate (const std::string &value)
 
void SetControlStatus (const std::string &value)
 
void SetControl (const std::string &state, const std::string &substate, const std::string &status)
 
void SetConfig (const std::string &reqEndpoint, const std::string &dbEndpoint, const timeval &dbTimeout, const std::string &scxmlFilename, const std::string &configFilename, const std::string &logLevel)
 
void SetDataDevMeas (const std::string &timeStamp, const double x, const double y)
 
void Set (const std::string &key, const std::string &value)
 
 DbInterface (const DbInterface &)=delete
 
DbInterfaceoperator= (const DbInterface &)=delete
 Disable copy constructor. More...
 

Detailed Description

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

Interface class to the data stored in the in-memory DB.

Constructor & Destructor Documentation

server::DbInterface::DbInterface ( const std::string &  prefix,
rad::DbAdapter runtimeDb 
)

Constructor.

Parameters
[in]prefixString used as prefix when building the keys.
[in]runtimeDbReference to the in-memory DB adapter.
server::DbInterface::~DbInterface ( )
virtual

Destructor

server::DbInterface::DbInterface ( const DbInterface )
delete
server::DbInterface::DbInterface ( const std::string &  prefix,
rad::DbAdapter runtimeDb 
)
virtual server::DbInterface::~DbInterface ( )
virtual
server::DbInterface::DbInterface ( const DbInterface )
delete
server::DbInterface::DbInterface ( const std::string &  prefix,
rad::DbAdapter runtime_db 
)

Constructor.

Parameters
[in]prefixString used as prefix when building the keys.
[in]runtimeDbReference to the in-memory DB adapter.
virtual server::DbInterface::~DbInterface ( )
virtual

Destructor

server::DbInterface::DbInterface ( const DbInterface )
delete
server::DbInterface::DbInterface ( const std::string &  prefix,
rad::DbAdapter runtimeDb 
)
virtual server::DbInterface::~DbInterface ( )
virtual
server::DbInterface::DbInterface ( const DbInterface )
delete

Member Function Documentation

std::string server::DbInterface::Get ( const std::string &  key)
std::string server::DbInterface::Get ( const std::string &  key)
std::string server::DbInterface::Get ( const std::string &  key)
Parameters
[in]keyKey in the DB.
Returns
The value stored in the DB associated to the given key.
std::string server::DbInterface::Get ( const std::string &  key)
Parameters
[in]keyKey in the DB.
Returns
The value stored in the DB associated to the given key.
std::string server::DbInterface::GetControlState ( )
std::string server::DbInterface::GetControlState ( )
std::string server::DbInterface::GetControlState ( )
Returns
The current state of the application stored in the DB.
std::string server::DbInterface::GetControlState ( )
Returns
The current state of the application stored in the DB.
std::string server::DbInterface::GetControlStatus ( )
std::string server::DbInterface::GetControlStatus ( )
std::string server::DbInterface::GetControlStatus ( )
Returns
The current state and sub-state of the application stored in the DB.
std::string server::DbInterface::GetControlStatus ( )
Returns
The current state and sub-state of the application stored in the DB.
std::string server::DbInterface::GetControlSubstate ( )
std::string server::DbInterface::GetControlSubstate ( )
std::string server::DbInterface::GetControlSubstate ( )
Returns
The current sub-state of the application stored in the DB.
std::string server::DbInterface::GetControlSubstate ( )
Returns
The current sub-state of the application stored in the DB.
DbInterface& server::DbInterface::operator= ( const DbInterface )
delete

Disable copy constructor.

DbInterface& server::DbInterface::operator= ( const DbInterface )
delete

Disable copy constructor.

DbInterface& server::DbInterface::operator= ( const DbInterface )
delete

Disable copy constructor.

DbInterface& server::DbInterface::operator= ( const DbInterface )
delete

Disable copy constructor.

void server::DbInterface::Set ( const std::string &  key,
const std::string &  value 
)
void server::DbInterface::Set ( const std::string &  key,
const std::string &  value 
)
void server::DbInterface::Set ( const std::string &  key,
const std::string &  value 
)
Parameters
[in]keyKey to be written in the DB.
[in]valueValue, associated to the given key, to be written in the DB.
void server::DbInterface::Set ( const std::string &  key,
const std::string &  value 
)
Parameters
[in]keyKey to be written in the DB.
[in]valueValue, associated to the given key, to be written in the DB.
void server::DbInterface::SetConfig ( const std::string &  reqEndpoint,
const std::string &  dbEndpoint,
const timeval &  dbTimeout,
const std::string &  scxmlFilename,
const std::string &  configFilename,
const std::string &  logLevel 
)
void server::DbInterface::SetConfig ( const std::string &  reqEndpoint,
const std::string &  dbEndpoint,
const timeval &  dbTimeout,
const std::string &  scxmlFilename,
const std::string &  configFilename,
const std::string &  logLevel 
)
void server::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]reqEndpointRequest msg endpoint.
[in]dbIpAddrDB IP address.
[in]dbPortDB port.
[in]dbTimeoutDB timeout.
void server::DbInterface::SetConfig ( const std::string &  reqEndpoint,
const std::string &  dbEndpoint,
const timeval &  dbTimeout,
const std::string &  scxmlFilename,
const std::string &  configFilename,
const std::string &  logLevel 
)

Set the application configuration information in the DB.

Parameters
[in]reqEndpointRequest msg endpoint.
[in]dbIpAddrDB IP address.
[in]dbPortDB port.
[in]dbTimeoutDB timeout.
void server::DbInterface::SetControl ( const std::string &  state,
const std::string &  substate,
const std::string &  status 
)
void server::DbInterface::SetControl ( const std::string &  state,
const std::string &  substate,
const std::string &  status 
)
void server::DbInterface::SetControl ( const std::string &  state,
const std::string &  substate,
const std::string &  status 
)

Set the application control information in the DB.

Parameters
[in]stateState to be stored in the DB.
[in]substateSubstate to be stored in the DB.
[in]statusStatus to be stored in the DB.
void server::DbInterface::SetControl ( const std::string &  state,
const std::string &  substate,
const std::string &  status 
)

Set the application control information in the DB.

Parameters
[in]stateState to be stored in the DB.
[in]substateSubstate to be stored in the DB.
[in]statusStatus to be stored in the DB.
void server::DbInterface::SetControlState ( const std::string &  value)
void server::DbInterface::SetControlState ( const std::string &  value)
void server::DbInterface::SetControlState ( const std::string &  value)
Parameters
[in]valueState to be stored in the DB.
void server::DbInterface::SetControlState ( const std::string &  value)
Parameters
[in]valueState to be stored in the DB.
void server::DbInterface::SetControlStatus ( const std::string &  value)
void server::DbInterface::SetControlStatus ( const std::string &  value)
void server::DbInterface::SetControlStatus ( const std::string &  value)
Parameters
[in]valueStatus (state and substate) to be stored in the DB.
void server::DbInterface::SetControlStatus ( const std::string &  value)
Parameters
[in]valueStatus (state and substate) to be stored in the DB.
void server::DbInterface::SetControlSubstate ( const std::string &  value)
void server::DbInterface::SetControlSubstate ( const std::string &  value)
void server::DbInterface::SetControlSubstate ( const std::string &  value)
Parameters
[in]valueSub-state to be stored in the DB.
void server::DbInterface::SetControlSubstate ( const std::string &  value)
Parameters
[in]valueSub-state to be stored in the DB.
void server::DbInterface::SetDataDevMeas ( const std::string &  timeStamp,
const double  x,
const double  y 
)
Parameters
[in]timeStampWhen the measurement was received.
[in]xPosition X of the device.
[in]yPosition Y of the device.
void server::DbInterface::SetDataDevMeas ( const std::string &  timeStamp,
const double  x,
const double  y 
)

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