ifw  0.0.1-dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Typedefs | Variables
devmgr::common Namespace Reference

Classes

class  ActionMgr
 
class  ActionsEnable
 
class  ActionsInit
 
class  ActionsRecover
 
class  ActionsSetup
 
class  ActionsStd
 
class  ActivityEnabling
 
class  ActivityInitialising
 
class  ActivityRecovering
 
class  Config
 
struct  ConfigSet
 
class  DataContext
 
class  DbInterface
 
class  Device
 
class  DeviceConfig
 Device Configuration class. More...
 
class  DeviceFacade
 
class  DeviceFactory
 
struct  DeviceControllerData
 The DeviceControllerData struct. More...
 
class  DeviceLcsIf
 Device Local Control System (LCS) Interface (IF) class. More...
 
class  DeviceMaker
 
class  IConfig
 
class  IDevice
 
class  IDeviceConfig
 Device Configuration class. More...
 
class  IDeviceMaker
 
class  MsgParsers
 
class  TopicParsers
 
class  TaskSetup
 

Typedefs

using CfgBool = devmgr::common::ConfigSet< bool >
 
using CfgInt = devmgr::common::ConfigSet< int >
 
using CfgUInt = devmgr::common::ConfigSet< unsigned int >
 
using CfgDouble = devmgr::common::ConfigSet< double >
 
using MapCfgBool = std::map< int, CfgBool >
 
using MapCfgInt = std::map< int, CfgInt >
 
using MapCfgUInt = std::map< int, CfgUInt >
 
using MapCfgDouble = std::map< int, CfgDouble >
 

Variables

const std::string CONFIG_DEFAULT_PROCNAME = "devmgrServer"
 
const std::string CONFIG_DEFAULT_FILENAME = ""
 
const std::string CONFIG_DEFAULT_SCXML_FILENAME = "Supervisor.xml"
 
const std::string CONFIG_DEFAULT_LOGLEVEL = "ERROR"
 
const std::string CONFIG_DEFAULT_DB_ENDPOINT = "127.0.0.1:6379"
 
const int CONFIG_DEFAULT_DB_TIMEOUT = 2
 
const std::string CONFIG_DEFAULT_REQ_ENDPOINT = "tcp://*:5578"
 
const std::string CONFIG_DEFAULT_PUB_ENDPOINT = "tcp://*:5568"
 
const std::string CONFIG_DEFAULT_SUB_ENDPOINT = "tcp://localhost:5568"
 
const std::string CONFIG_DEFAULT_EXT_PUB_ENDPOINT = "tcp://*:5558"
 
const std::string CONFIG_DEFAULT_EXT_SUB_ENDPOINT = "tcp://localhost:5558"
 
const std::string CONFIG_DEFAULT_DICTIONARIES = "devmgr/server/primary.did"
 
const std::string CONFIG_DEFAULT_FIT_PREFIX = "FCS"
 
const unsigned int CONFIG_DEFAULT_CMD_TOUT = 60000
 
const std::string CONFIG_ENVVAR_DBHOST = "DB_HOST"
 
const short SRV_STATE_STANDBY = 1
 
const short SRV_STATE_OPERATIONAL = 2
 
const short SRV_SUBSTATE_NOTREADY = 1
 
const short SRV_SUBSTATE_READY = 2
 
const short SRV_SUBSTATE_IDLE = 3
 
const short SRV_SUBSTATE_ERROR = 4
 
const std::string SRV_STATE_STANDBY_STR = "NotOperational"
 
const std::string SRV_STATE_OPERATIONAL_STR = "Operational"
 
const std::string SRV_STATE_UNAVAILABLE_STR = "Unavailable"
 
const std::string SRV_SUBSTATE_NOTREADY_STR = "NotRead"
 
const std::string SRV_SUBSTATE_READY_STR = "Ready"
 
const std::string SRV_SUBSTATE_IDLE_STR = "Idle"
 
const std::string SRV_SUBSTATE_ERROR_STR = "Error"
 
const std::unordered_map
< short, std::string > 
SrvStateMap
 
const std::unordered_map
< std::string, short > 
SrvStateStrMap
 
const std::unordered_map
< short, std::string > 
SrvSubstateMap
 
const std::unordered_map
< std::string, short > 
SrvSubstateStrMap
 
const std::string KEY_CONTROL_STATE = "state"
 
const std::string KEY_CONTROL_SUBSTATE = "substate"
 
const std::string KEY_CONTROL_STATUS = "status"
 
const std::string KEY_CONTROL_STATE_STR = "state_str"
 
const std::string KEY_CONTROL_SUBSTATE_STR = "substate_str"
 
const std::string KEY_CONFIG_REQ_ENDPOINT = "req_endpoint"
 
const std::string KEY_CONFIG_PUB_ENDPOINT = "pub_endpoint"
 
const std::string KEY_CONFIG_SUB_ENDPOINT = "sub_endpoint"
 
const std::string KEY_CONFIG_EXT_PUB_ENDPOINT = "ext_pub_endpoint"
 
const std::string KEY_CONFIG_EXT_SUB_ENDPOINT = "ext_sub_endpoint"
 
const std::string KEY_CONFIG_DB_ENDPOINT = "db_endpoint"
 
const std::string KEY_CONFIG_DB_TIMEOUT = "db_timeout"
 
const std::string KEY_CONFIG_SM_SCXML = "scxml"
 
const std::string KEY_CONFIG_FILENAME = "filename"
 
const std::string KEY_CONFIG_LOG_LEVEL = "loglevel"
 
const std::string KEY_CONFIG_SERVER_ID = "server_id"
 
const std::string KEY_CONFIG_SERVER = "server"
 
const std::string KEY_CONFIG_DEVICES = "devices"
 
const std::string KEY_CONFIG_DEVFILE = "cfgfile"
 
const std::string KEY_CONFIG_CMDTOUT = "cmdtout"
 
const std::string KEY_CONFIG_TYPE = "type"
 
const std::string KEY_CONFIG_DICTIONARIES = "dictionaries"
 
const std::string KEY_CONFIG_PREFIX = "fits_prefix"
 
const std::string CI_IDENTIFIER = "identifier"
 
const std::string CI_SIMULATED = "simulated"
 
const std::string CI_IGNORED = "ignored"
 
const std::string CI_ADDRESS = "address"
 
const std::string CI_SIM_ADDRESS = "simaddr"
 
const std::string CI_TYPE = "type"
 
const std::string CI_PREFIX = "prefix"
 
const std::string CI_NAMESPACE = "namespace"
 
const std::string CI_MAP_FILE = "mapfile"
 
const std::string CI_FITS_PREFIX = "fits_prefix"
 
const std::string CI_ALIAS = "alias"
 
const std::string CI_CFG_FILE = "cfgfile"
 
const std::string CI_CTRL_CONFIG = "ctrl_config"
 
const std::string RPC_INIT = "rpcInit"
 
const std::string RPC_ENABLE = "rpcEnable"
 
const std::string RPC_DISABLE = "rpcDisable"
 
const std::string RPC_STOP = "rpcStop"
 
const std::string RPC_RESET = "rpcReset"
 
const std::string CI_STAT_SUBSTATE = "substate"
 
const std::string CI_STAT_STATE = "state"
 
const std::string CI_STAT_STATU = "status"
 
const std::string CI_STAT_LOCAL = "local"
 
const std::string CI_STAT_ERROR_CODE = "error_code"
 
const std::string CI_STAT_ERROR_STR = "error_str"
 
const std::string DB_CONTROLLER_PREFIX = "lcs"
 
const std::string CAT_STAT = "stat"
 
const std::string CAT_CFG = "cfg"
 
const std::string CAT_RPC = "rpc"
 
const short STATE_STANDBY = 1
 
const short STATE_OPERATIONAL = 2
 
const std::string STATE_STANDBY_STR = "NotOperational"
 
const std::string STATE_OPERATIONAL_STR = "Operational"
 
const std::string STATE_UNAVAILABLE_STR = "Unavailable"
 
const std::unordered_map
< short, std::string > 
StateMap
 
const std::unordered_map
< std::string, short > 
StateStrMap
 
const short SUBSTATE_NOTREADY = 100
 
const short SUBSTATE_INITIALISING = 101
 
const short SUBSTATE_READY = 102
 
const short SUBSTATE_DISABLING = 200
 
const std::string SUBSTATE_NOTREADY_STR = "NotReady"
 
const std::string SUBSTATE_INITIALISING_STR = "Initialising"
 
const std::string SUBSTATE_READY_STR = "Ready"
 
const std::string SUBSTATE_DISABLING_STR = "Disabling"
 
const std::string FITS_PARAM_ID = "ID"
 
const std::string FITS_PARAM_NAME = "NAME"
 
const std::string FITS_PARAM_STAT = "STAT"
 
const std::string FITS_PARAM_DEVSIM = "DEVSIM"
 
const std::string FITS_PARAM_DEVIGN = "DEVIGN"
 

Typedef Documentation

typedef std::map< int, CfgBool > devmgr::common::MapCfgBool
typedef std::map< int, CfgDouble > devmgr::common::MapCfgDouble
typedef std::map< int, CfgInt > devmgr::common::MapCfgInt
typedef std::map< int, CfgUInt > devmgr::common::MapCfgUInt

Variable Documentation

const std::string devmgr::common::CAT_CFG = "cfg"
const std::string devmgr::common::CAT_RPC = "rpc"
const std::string devmgr::common::CAT_STAT = "stat"
const std::string devmgr::common::CI_ADDRESS = "address"
const std::string devmgr::common::CI_ALIAS = "alias"
const std::string devmgr::common::CI_CFG_FILE = "cfgfile"
const std::string devmgr::common::CI_CTRL_CONFIG = "ctrl_config"
const std::string devmgr::common::CI_FITS_PREFIX = "fits_prefix"
const std::string devmgr::common::CI_IDENTIFIER = "identifier"
const std::string devmgr::common::CI_IGNORED = "ignored"
const std::string devmgr::common::CI_MAP_FILE = "mapfile"
const std::string devmgr::common::CI_NAMESPACE = "namespace"
const std::string devmgr::common::CI_PREFIX = "prefix"
const std::string devmgr::common::CI_SIM_ADDRESS = "simaddr"
const std::string devmgr::common::CI_SIMULATED = "simulated"
const std::string devmgr::common::CI_STAT_ERROR_CODE = "error_code"
const std::string devmgr::common::CI_STAT_ERROR_STR = "error_str"
const std::string devmgr::common::CI_STAT_LOCAL = "local"
const std::string devmgr::common::CI_STAT_STATE = "state"
const std::string devmgr::common::CI_STAT_STATU = "status"
const std::string devmgr::common::CI_STAT_SUBSTATE = "substate"
const std::string devmgr::common::CI_TYPE = "type"
const unsigned int devmgr::common::CONFIG_DEFAULT_CMD_TOUT = 60000
const std::string devmgr::common::CONFIG_DEFAULT_DB_ENDPOINT = "127.0.0.1:6379"
const int devmgr::common::CONFIG_DEFAULT_DB_TIMEOUT = 2
const std::string devmgr::common::CONFIG_DEFAULT_DICTIONARIES = "devmgr/server/primary.did"
const std::string devmgr::common::CONFIG_DEFAULT_EXT_PUB_ENDPOINT = "tcp://*:5558"
const std::string devmgr::common::CONFIG_DEFAULT_EXT_SUB_ENDPOINT = "tcp://localhost:5558"
const std::string devmgr::common::CONFIG_DEFAULT_FILENAME = ""

no default value to force user to specify config filename since it overwrites the command line options.

const std::string devmgr::common::CONFIG_DEFAULT_FIT_PREFIX = "FCS"
const std::string devmgr::common::CONFIG_DEFAULT_LOGLEVEL = "ERROR"
const std::string devmgr::common::CONFIG_DEFAULT_PROCNAME = "devmgrServer"

Default application configuration values.

const std::string devmgr::common::CONFIG_DEFAULT_PUB_ENDPOINT = "tcp://*:5568"
const std::string devmgr::common::CONFIG_DEFAULT_REQ_ENDPOINT = "tcp://*:5578"
const std::string devmgr::common::CONFIG_DEFAULT_SCXML_FILENAME = "Supervisor.xml"
const std::string devmgr::common::CONFIG_DEFAULT_SUB_ENDPOINT = "tcp://localhost:5568"
const std::string devmgr::common::CONFIG_ENVVAR_DBHOST = "DB_HOST"

Application configuration environment variables

const std::string devmgr::common::DB_CONTROLLER_PREFIX = "lcs"
const std::string devmgr::common::FITS_PARAM_DEVIGN = "DEVIGN"
const std::string devmgr::common::FITS_PARAM_DEVSIM = "DEVSIM"
const std::string devmgr::common::FITS_PARAM_ID = "ID"
const std::string devmgr::common::FITS_PARAM_NAME = "NAME"
const std::string devmgr::common::FITS_PARAM_STAT = "STAT"
const std::string devmgr::common::KEY_CONFIG_CMDTOUT = "cmdtout"
const std::string devmgr::common::KEY_CONFIG_DB_ENDPOINT = "db_endpoint"
const std::string devmgr::common::KEY_CONFIG_DB_TIMEOUT = "db_timeout"
const std::string devmgr::common::KEY_CONFIG_DEVFILE = "cfgfile"
const std::string devmgr::common::KEY_CONFIG_DEVICES = "devices"
const std::string devmgr::common::KEY_CONFIG_DICTIONARIES = "dictionaries"
const std::string devmgr::common::KEY_CONFIG_EXT_PUB_ENDPOINT = "ext_pub_endpoint"
const std::string devmgr::common::KEY_CONFIG_EXT_SUB_ENDPOINT = "ext_sub_endpoint"
const std::string devmgr::common::KEY_CONFIG_FILENAME = "filename"
const std::string devmgr::common::KEY_CONFIG_LOG_LEVEL = "loglevel"
const std::string devmgr::common::KEY_CONFIG_PREFIX = "fits_prefix"
const std::string devmgr::common::KEY_CONFIG_PUB_ENDPOINT = "pub_endpoint"
const std::string devmgr::common::KEY_CONFIG_REQ_ENDPOINT = "req_endpoint"
const std::string devmgr::common::KEY_CONFIG_SERVER = "server"
const std::string devmgr::common::KEY_CONFIG_SERVER_ID = "server_id"
const std::string devmgr::common::KEY_CONFIG_SM_SCXML = "scxml"
const std::string devmgr::common::KEY_CONFIG_SUB_ENDPOINT = "sub_endpoint"
const std::string devmgr::common::KEY_CONFIG_TYPE = "type"
const std::string devmgr::common::KEY_CONTROL_STATE = "state"
const std::string devmgr::common::KEY_CONTROL_STATE_STR = "state_str"
const std::string devmgr::common::KEY_CONTROL_STATUS = "status"
const std::string devmgr::common::KEY_CONTROL_SUBSTATE = "substate"
const std::string devmgr::common::KEY_CONTROL_SUBSTATE_STR = "substate_str"
const std::string devmgr::common::RPC_DISABLE = "rpcDisable"
const std::string devmgr::common::RPC_ENABLE = "rpcEnable"
const std::string devmgr::common::RPC_INIT = "rpcInit"
const std::string devmgr::common::RPC_RESET = "rpcReset"
const std::string devmgr::common::RPC_STOP = "rpcStop"
const short devmgr::common::SRV_STATE_OPERATIONAL = 2
const std::string devmgr::common::SRV_STATE_OPERATIONAL_STR = "Operational"
const short devmgr::common::SRV_STATE_STANDBY = 1
const std::string devmgr::common::SRV_STATE_STANDBY_STR = "NotOperational"
const std::string devmgr::common::SRV_STATE_UNAVAILABLE_STR = "Unavailable"
const short devmgr::common::SRV_SUBSTATE_ERROR = 4
const std::string devmgr::common::SRV_SUBSTATE_ERROR_STR = "Error"
const short devmgr::common::SRV_SUBSTATE_IDLE = 3
const std::string devmgr::common::SRV_SUBSTATE_IDLE_STR = "Idle"
const short devmgr::common::SRV_SUBSTATE_NOTREADY = 1
const std::string devmgr::common::SRV_SUBSTATE_NOTREADY_STR = "NotRead"
const short devmgr::common::SRV_SUBSTATE_READY = 2
const std::string devmgr::common::SRV_SUBSTATE_READY_STR = "Ready"
const std::unordered_map< short, std::string > devmgr::common::SrvStateMap
Initial value:
= {
}
const short SRV_STATE_OPERATIONAL
Definition: dataContext.hpp:27
const short SRV_STATE_STANDBY
Definition: dataContext.hpp:26
const std::string SRV_STATE_STANDBY_STR
Definition: dataContext.hpp:35
const std::string SRV_STATE_OPERATIONAL_STR
Definition: dataContext.hpp:36
const std::unordered_map< std::string, short > devmgr::common::SrvStateStrMap
Initial value:
= {
}
const short SRV_STATE_OPERATIONAL
Definition: dataContext.hpp:27
const short SRV_STATE_STANDBY
Definition: dataContext.hpp:26
const std::string SRV_STATE_STANDBY_STR
Definition: dataContext.hpp:35
const std::string SRV_STATE_OPERATIONAL_STR
Definition: dataContext.hpp:36
const std::unordered_map< short, std::string > devmgr::common::SrvSubstateMap
Initial value:
= {
}
const short SRV_SUBSTATE_IDLE
Definition: dataContext.hpp:32
const short SRV_SUBSTATE_READY
Definition: dataContext.hpp:31
const short SRV_SUBSTATE_NOTREADY
Definition: dataContext.hpp:30
const std::string SRV_SUBSTATE_ERROR_STR
Definition: dataContext.hpp:42
const short SRV_SUBSTATE_ERROR
Definition: dataContext.hpp:33
const std::string SRV_SUBSTATE_READY_STR
Definition: dataContext.hpp:40
const std::string SRV_SUBSTATE_NOTREADY_STR
Definition: dataContext.hpp:39
const std::string SRV_SUBSTATE_IDLE_STR
Definition: dataContext.hpp:41
const std::unordered_map< std::string, short > devmgr::common::SrvSubstateStrMap
Initial value:
= {
}
const short SRV_SUBSTATE_IDLE
Definition: dataContext.hpp:32
const short SRV_SUBSTATE_READY
Definition: dataContext.hpp:31
const short SRV_SUBSTATE_NOTREADY
Definition: dataContext.hpp:30
const std::string SRV_SUBSTATE_ERROR_STR
Definition: dataContext.hpp:42
const short SRV_SUBSTATE_ERROR
Definition: dataContext.hpp:33
const std::string SRV_SUBSTATE_READY_STR
Definition: dataContext.hpp:40
const std::string SRV_SUBSTATE_NOTREADY_STR
Definition: dataContext.hpp:39
const std::string SRV_SUBSTATE_IDLE_STR
Definition: dataContext.hpp:41
const short devmgr::common::STATE_OPERATIONAL = 2
const std::string devmgr::common::STATE_OPERATIONAL_STR = "Operational"
const short devmgr::common::STATE_STANDBY = 1
const std::string devmgr::common::STATE_STANDBY_STR = "NotOperational"
const std::string devmgr::common::STATE_UNAVAILABLE_STR = "Unavailable"
const std::unordered_map< short, std::string > devmgr::common::StateMap
Initial value:
= {
}
const short STATE_STANDBY
Definition: deviceConfig.hpp:63
const std::string STATE_STANDBY_STR
Definition: deviceConfig.hpp:66
const std::string STATE_OPERATIONAL_STR
Definition: deviceConfig.hpp:67
const short STATE_OPERATIONAL
Definition: deviceConfig.hpp:64
const std::unordered_map< std::string, short > devmgr::common::StateStrMap
Initial value:
= {
}
const short STATE_STANDBY
Definition: deviceConfig.hpp:63
const std::string STATE_STANDBY_STR
Definition: deviceConfig.hpp:66
const std::string STATE_OPERATIONAL_STR
Definition: deviceConfig.hpp:67
const short STATE_OPERATIONAL
Definition: deviceConfig.hpp:64
const short devmgr::common::SUBSTATE_DISABLING = 200
const std::string devmgr::common::SUBSTATE_DISABLING_STR = "Disabling"
const short devmgr::common::SUBSTATE_INITIALISING = 101
const std::string devmgr::common::SUBSTATE_INITIALISING_STR = "Initialising"
const short devmgr::common::SUBSTATE_NOTREADY = 100
const std::string devmgr::common::SUBSTATE_NOTREADY_STR = "NotReady"
const short devmgr::common::SUBSTATE_READY = 102
const std::string devmgr::common::SUBSTATE_READY_STR = "Ready"