Go to the documentation of this file.
10 #ifndef FCF_DEVMGR_DEVICE_SENSOR_CONFIG_HPP
11 #define FCF_DEVMGR_DEVICE_SENSOR_CONFIG_HPP
17 #include <yaml-cpp/yaml.h>
19 #include <fcf/common/iComm.hpp>
137 template<
typename TOPIC_TYPE>
155 const std::string name);
185 virtual void GetConfig(fcf::common::VectorVariant& params);
196 virtual void GetConfigList(std::vector<std::string>& cfg_list,
206 virtual void GetChannelList(std::vector<std::string>& channel_list);
213 std::map<std::string, Channel> m_channel_map;
218 #include "sensorConfig.ipp"
219 #endif //FCF_DEVMGR_DEVICE_SENSOR_CONFIG_H
constexpr auto CI_TYPE
Definition: sensorConfig.hpp:34
virtual void GetConfigList(std::vector< std::string > &cfg_list, std::string prefix)
Get configuration list.
Definition: sensorConfig.cpp:174
constexpr auto CI_ALIAS
Definition: sensorConfig.hpp:33
bool GetHeaderFlag() const
The Sensor class.
Definition: sensor.hpp:41
DataContext class header file.
constexpr auto II_CAT_STR
Definition: sensorConfig.hpp:63
std::string m_description
Definition: sensorConfig.hpp:115
bool m_log
Definition: sensorConfig.hpp:119
constexpr int SUBSTATE_OP_MONITORING
Definition: sensorConfig.hpp:45
void SetType(std::string type)
std::string GetFitsPrefix() const
const std::unordered_map< short, std::string > SubstateMap
Definition: sensorConfig.hpp:48
constexpr auto CI_MAP
Definition: sensorConfig.hpp:38
SensorConfig(const std::string filename, const std::string name)
DeviceConfig constructor.
Definition: sensorConfig.cpp:40
void SetUnit(std::string unit)
DeviceConfig class header file.
std::string m_type
Definition: sensorConfig.hpp:117
constexpr auto AI_TYPE_STR
Definition: sensorConfig.hpp:57
void SetAlias(std::string alias)
std::string m_unit
Definition: sensorConfig.hpp:120
constexpr auto CI_STAT_STATE
Definition: deviceConfig.hpp:51
std::string m_map
Definition: sensorConfig.hpp:121
const std::vector< std::string > statMapping
Definition: sensorConfig.hpp:77
Definition: sensorConfig.hpp:90
constexpr auto CI_HEADER
Definition: sensorConfig.hpp:35
constexpr auto CI_CHANNELS
Definition: sensorConfig.hpp:31
constexpr auto DI_CAT_STR
Definition: sensorConfig.hpp:61
Sensor Local Control System (LCS) Interface (IF) class.
Definition: sensorLcsIf.hpp:97
std::string m_prefix
Definition: sensorConfig.hpp:122
virtual ~SensorConfig()
DeviceConfig destructor.
Definition: sensorConfig.cpp:58
constexpr auto SI_TYPE_STR
Definition: sensorConfig.hpp:59
constexpr auto RPC_STOP
Definition: deviceConfig.hpp:46
const std::vector< std::string > cfgMapping
Definition: sensorConfig.hpp:74
constexpr auto RPC_DISABLE
Definition: deviceConfig.hpp:45
bool m_header
Definition: sensorConfig.hpp:118
Definition: sensor.hpp:21
virtual void GetChannelList(std::vector< std::string > &channel_list)
Get channel list.
Definition: sensorConfig.cpp:223
virtual void ReadConfig()
Read the configuration.
Definition: sensorConfig.cpp:64
constexpr auto SUBSTATE_NOTREADY_STR
Definition: deviceConfig.hpp:87
virtual void GetConfig(fcf::common::VectorVariant ¶ms)
Obtain the list of configuration parameters.
Definition: sensorConfig.cpp:167
constexpr auto CI_LOG
Definition: sensorConfig.hpp:36
configSet class header file.
constexpr auto II_TYPE_STR
Definition: sensorConfig.hpp:58
constexpr int SUBSTATE_NOTREADY
Definition: deviceConfig.hpp:82
SensorRpcErrors header file.
Channel()
Definition: sensorConfig.cpp:26
constexpr auto DI_TYPE_STR
Definition: sensorConfig.hpp:56
constexpr auto SI_CAT_STR
Definition: sensorConfig.hpp:64
void SetMap(std::string map)
void SetHeaderFlag(bool flag)
type
Definition: pymotgui.py:20
const std::unordered_map< std::string, std::string > ChannelTypeMap
Definition: sensorConfig.hpp:67
void SetLogFlag(bool flag)
constexpr auto RPC_ENABLE
Definition: deviceConfig.hpp:44
constexpr int SUBSTATE_OP_ERROR
Definition: deviceConfig.hpp:93
constexpr auto SUBSTATE_OP_MONITORING_STR
Definition: sensorConfig.hpp:46
virtual ~Channel()
Definition: sensorConfig.cpp:36
constexpr auto SUBSTATE_OP_ERROR_STR
Definition: deviceConfig.hpp:96
std::string GetAlias() const
const std::vector< std::string > rpcMapping
Definition: sensorConfig.hpp:82
sensor Configuration class
Definition: sensorConfig.hpp:134
void SetDescription(std::string description)
constexpr auto CI_STAT_SUBSTATE
Definition: deviceConfig.hpp:50
constexpr int SUBSTATE_ERROR
Definition: deviceConfig.hpp:85
std::string GetDescription() const
constexpr auto RPC_INIT
Definition: deviceConfig.hpp:43
constexpr auto AI_CAT_STR
Definition: sensorConfig.hpp:62
Device Configuration class.
Definition: deviceConfig.hpp:125
constexpr auto SUBSTATE_READY_STR
Definition: deviceConfig.hpp:89
constexpr int SUBSTATE_READY
Definition: deviceConfig.hpp:83
bool IsReadOnly()
Definition: sensorConfig.cpp:232
std::string m_alias
Definition: sensorConfig.hpp:116
constexpr auto CI_READONLY
Definition: sensorConfig.hpp:28
constexpr auto SUBSTATE_ERROR_STR
Definition: deviceConfig.hpp:90
void SetFitsPrefix(std::string prefix)
std::string GetMap() const
std::string GetType() const
std::string GetCat() const
constexpr auto CI_UNIT
Definition: sensorConfig.hpp:37
SensorHwErrors header file.
std::string GetUnit() const
constexpr auto RPC_RESET
Definition: deviceConfig.hpp:47
constexpr auto CI_DESCRIPTION
Definition: sensorConfig.hpp:32