10 #ifndef DEVMGR_DEVICE_SHUTTER_CONFIG_HPP
11 #define DEVMGR_DEVICE_SHUTTER_CONFIG_HPP
17 #include <yaml-cpp/yaml.h>
19 #include <fcf/common/iComm.hpp>
20 #include <devmgr/common/deviceConfig.hpp>
21 #include <devmgr/common/configSet.hpp>
22 #include <devmgr/common/dataContext.hpp>
23 #include <devmgr/devices/shutterRpcErrors.hpp>
24 #include <devmgr/devices/shutterHwErrors.hpp>
51 const std::string
RPC_OPEN =
"rpcOpen";
81 const std::unordered_map<short, std::string>
SubstateMap = {
149 const std::string
name);
173 virtual void GetConfig(fcf::common::VectorVariant& params);
190 virtual void GetConfigList(std::vector<std::string>& cfg_list, std::string prefix);
203 #endif //DEVMGR_DEVICE_SHUTTER_CONFIG_HPP
const std::string CI_IGNORE_OPEN
Definition: shutterConfig.hpp:36
const bool DEFAULT_ACTIVE_LOW_CLOSE
Definition: shutterConfig.hpp:40
const std::string CI_INITIAL_STATE
Definition: shutterConfig.hpp:37
const unsigned int DEFAULT_TIMEOUT
Definition: shutterConfig.hpp:48
const std::string RPC_STOP
Definition: deviceConfig.hpp:45
const std::string SUBSTATE_OP_FAILURE_STR
Definition: shutterConfig.hpp:79
virtual void GetConfigList(std::vector< std::string > &cfg_list, std::string prefix)
Get configuration list.
Definition: shutterConfig.cpp:145
virtual ~ShutterConfig()
ShutterConfig destructor.
Definition: shutterConfig.cpp:67
const std::string SUBSTATE_FAILURE_STR
Definition: shutterConfig.hpp:72
std::map< int, CfgBool > MapCfgBool
Definition: deviceConfig.hpp:104
const std::string RPC_DISABLE
Definition: deviceConfig.hpp:44
const std::string CI_ACTIVE_LOW_FAULT
Definition: shutterConfig.hpp:31
const std::string RPC_CLOSE
Definition: shutterConfig.hpp:52
const std::string CI_STAT_ERROR_CODE
Definition: deviceConfig.hpp:53
const bool DEFAULT_ACTIVE_LOW_FAULT
Definition: shutterConfig.hpp:41
const short SUBSTATE_OP_OPENING
Definition: shutterConfig.hpp:65
const std::string SUBSTATE_OP_OPENING_STR
Definition: shutterConfig.hpp:78
const std::string CI_STAT_SUBSTATE
Definition: deviceConfig.hpp:49
const std::string CI_ACTIVE_LOW_CLOSED
Definition: shutterConfig.hpp:30
const std::string CI_TIMEOUT
Definition: shutterConfig.hpp:38
const bool DEFAULT_IGNORE_CLOSED
Definition: shutterConfig.hpp:44
const bool DEFAULT_ACTIVE_LOW_OPEN
Definition: shutterConfig.hpp:42
const std::string CI_ACTIVE_LOW_OPEN
Definition: shutterConfig.hpp:32
const std::string SUBSTATE_INITIALISING_STR
Definition: shutterConfig.hpp:69
const bool DEFAULT_IGNORE_FAULT
Definition: shutterConfig.hpp:45
const bool DEFAULT_INITIAL_STATE
Definition: shutterConfig.hpp:47
Device Configuration class.
Definition: deviceConfig.hpp:116
const std::string RPC_INIT
Definition: deviceConfig.hpp:42
const short SUBSTATE_OP_FAILURE
Definition: shutterConfig.hpp:66
const short SUBSTATE_READY_OPEN
Definition: shutterConfig.hpp:58
const std::vector< std::string > rpcMapping
Definition: shutterConfig.hpp:107
virtual void ReadConfig()
Read the configuration.
Definition: shutterConfig.cpp:71
const std::vector< std::string > statMapping
Definition: shutterConfig.hpp:100
const short SUBSTATE_READY_CLOSE
Definition: shutterConfig.hpp:57
const std::string CI_IGNORE_FAULT
Definition: shutterConfig.hpp:35
const std::string SUBSTATE_READY_CLOSE_STR
Definition: shutterConfig.hpp:70
const short SUBSTATE_OP_CLOSING
Definition: shutterConfig.hpp:63
const short SUBSTATE_OP_DISABLING
Definition: shutterConfig.hpp:61
virtual void GetConfig(fcf::common::VectorVariant ¶ms)
Obtain the list of configuration parameters.
Definition: shutterConfig.cpp:116
const std::string RPC_OPEN
Definition: shutterConfig.hpp:51
const std::string SUBSTATE_OP_CLOSE_STR
Definition: shutterConfig.hpp:75
const std::string SUBSTATE_OP_OPEN_STR
Definition: shutterConfig.hpp:77
const std::string RPC_RESET
Definition: deviceConfig.hpp:46
const short SUBSTATE_OP_CLOSE
Definition: shutterConfig.hpp:62
virtual std::string GetMapFile()
Definition: shutterConfig.cpp:137
const bool DEFAULT_ACTIVE_LOW_SWITCH
Definition: shutterConfig.hpp:43
const std::string CI_STAT_LOCAL
Definition: deviceConfig.hpp:52
const std::vector< std::string > cfgMapping
Definition: shutterConfig.hpp:95
const std::string SUBSTATE_OP_CLOSING_STR
Definition: shutterConfig.hpp:76
std::map< int, CfgUInt > MapCfgUInt
Definition: deviceConfig.hpp:106
const short SUBSTATE_OP_OPEN
Definition: shutterConfig.hpp:64
const std::string CI_STAT_STATE
Definition: deviceConfig.hpp:50
const std::string SUBSTATE_NOTREADY_STR
Definition: shutterConfig.hpp:68
const std::unordered_map< short, std::string > SubstateMap
Definition: shutterConfig.hpp:81
ShutterConfig(const std::string filename, const std::string name)
MotorConfig constructor.
Definition: shutterConfig.cpp:26
const std::string CI_IGNORE_CLOSED
Definition: shutterConfig.hpp:34
const bool DEFAULT_IGNORE_OPEN
Definition: shutterConfig.hpp:46
const std::string RPC_ENABLE
Definition: deviceConfig.hpp:43
const short SUBSTATE_NOTREADY
Definition: shutterConfig.hpp:55
const short SUBSTATE_INITIALISING
Definition: shutterConfig.hpp:56
const std::string CI_ACTIVE_LOW_SWITCH
Definition: shutterConfig.hpp:33
const std::string SUBSTATE_OP_DISABLING_STR
Definition: shutterConfig.hpp:74
optional string name
Definition: topics.proto:50
const std::string SUBSTATE_READY_OPEN_STR
Definition: shutterConfig.hpp:71
const short SUBSTATE_STANDBY_FAILURE
Definition: shutterConfig.hpp:59