ifw-fcf 7.1.4
|
Test IODevConfig class used for testing purposes. More...
Public Member Functions | |
MyDeviceConfig (const std::string &filename, const std::string &name) | |
void | GetConfig (ifw::core::protocol::base::VectorVariant ¶ms) const |
Obtain the list of configuration parameters. | |
void | SetMapFile (const std::string &filename) |
virtual std::string | GetMapFile () const |
Get name of the device mapping file. | |
![]() | |
IODevConfig (const std::string filename, const std::string name) | |
IODevConfig constructor. | |
IODevConfig (const std::string name) | |
DeviceConfig constructor. | |
virtual | ~IODevConfig ()=default |
DeviceConfig destructor. | |
void | Init () |
Read the configuration. | |
virtual void | GetConfigList (ifw::core::utils::bat::DbVector &cfg_list, std::string prefix) const override |
Get configuration list. | |
virtual void | GetInputList (std::vector< std::string > &channel_list) const |
Get input channel list. | |
virtual void | GetOutputList (std::vector< std::pair< std::string, std::string > > &channel_list) const |
Get output channel list. | |
bool | IsNoRpc () const |
Get NO RPC flag. | |
bool | IsSensor () const |
Get Sensor flag. | |
std::string | GetChannelType (const std::string &channel) const |
std::string | GetChannelDescription (const std::string &channel) const |
std::string | GetChannelNamedValue (const std::string &channel, const std::string &value) const |
std::optional< IODevChannel > | GetChannelConfig (const std::string &channel) const |
![]() | |
DeviceConfig (const std::string &filename, const std::string &name) | |
DeviceConfig constructor. | |
DeviceConfig (const std::string &name) | |
DeviceConfig constructor. | |
virtual | ~DeviceConfig () |
DeviceConfig destructor. | |
bool | Init () |
Initialises a device. | |
void | InitFromString (std::string config) |
Init the internal configuration from a string. | |
void | InitFromFile (const std::string &filename) |
Init the internal configuration from a given file. | |
std::string | GetIdentifier () const override |
std::string | GetPrefix () const override |
std::string | GetAddress () const override |
std::string | GetSimAddress () const override |
std::string | GetFitsPrefix () const |
Get Fits Prefix. | |
std::string | GetType () const override |
int | GetNamespace () const override |
std::string | GetAlias () const override |
std::string | GetId () const |
std::string | GetOverview () const |
std::string | GetDescription () const |
std::string | GetName () const noexcept override |
std::string | GetLogName () const noexcept |
std::string | GetNodeIdByType (const std::string &attrib, const NodeIdType type=ATTRIB_NODE_ID) const |
Get node id. | |
std::string | GetNodeId (const std::string &attrib) const override |
Get node id. | |
std::string | GetProcId (const std::string &attrib) const override |
Get procedure id. | |
std::string | GetObjId () const override |
Get object id. | |
std::string | GetCfgFile () const |
GetCfgFile. | |
std::string | GetCfgAsString () const override |
GetCfgAsString. | |
virtual void | SetSimulateFlag (const bool flag) override |
Set simulation flag. | |
virtual void | SetIgnoreFlag (const bool flag) override |
Set ignore flag. | |
virtual bool | GetIgnored () const override |
Get ignored flag. | |
virtual bool | GetSimulated () const override |
Get simulated flag. | |
void | CheckConfig () const |
Validates the document configuration. | |
Additional Inherited Members | |
![]() | |
enum | NodeIdType { ATTRIB_NODE_ID , RPC_NODE_ID , OBJ_NODE_ID } |
![]() | |
void | MergeConfig (const elt::configng::CiiConfigDocument &doc, bool check=true) |
Merges a configuration file. | |
bool | GetVariantValue (const elt::configng::CiiConfigInstanceNode node, ifw::core::protocol::base::Variant &value) const |
Obtain the variant value with the correct type. | |
bool | IsValidNodeIDFormat (const std::string &node_id_string) const |
IsValidNodeIDFormat. | |
![]() | |
std::string | m_filename |
filename of device configuration file | |
std::string | m_name |
device identifier | |
std::string | m_type |
std::unique_ptr< elt::configng::CiiConfigDocument > | m_config_doc |
Internal configuration document object. | |
Test IODevConfig class used for testing purposes.
|
inline |
|
inlinevirtual |
Obtain the list of configuration parameters.
[in,out] | params | output vector with the list of config parameters |
This methods prepare a vector with all the configuration parameters of a sensor with the purpose to keep it in memory.
Reimplemented from ifw::fcf::devmgr::iodev::IODevConfig.
|
inlinevirtual |
Get name of the device mapping file.
Reimplemented from ifw::fcf::devmgr::common::DeviceConfig.
|
inline |