ifw-fcf 7.1.4
|
Test DrotConfig class used for testing purposes. More...
Public Member Functions | |
MyDeviceConfig (const std::string &filename, const std::string &name) | |
void | Init () |
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. | |
![]() | |
MotorConfig (const std::string filename, const std::string name) | |
MotorConfig constructor. | |
MotorConfig (const std::string name) | |
MotorConfig constructor. | |
virtual | ~MotorConfig ()=default |
MotorConfig destructor. | |
void | Init () |
Read the configuration. | |
virtual void | GetConfigList (ifw::core::utils::bat::DbVector &cfg_list, std::string prefix) const override |
Get configuration list. | |
int | GetNumberOfInitSteps () const noexcept |
Get number of initialisations steps. | |
double | GetScaleFactor () const override |
void | SetScaleFactor (double scale) |
Set Scale Factor. | |
![]() | |
MotorBaseConfig (const std::string filename, const std::string name) | |
MotorConfig constructor. | |
MotorBaseConfig (const std::string name) | |
MotorConfig constructor. | |
virtual | ~MotorBaseConfig ()=default |
MotorConfig destructor. | |
void | Init () |
Read the configuration. | |
int | GetNumberOfNamedPositions () const noexcept |
double | GetVelocity () const |
std::string | GetNamedPosition (const int index) const |
GetNamedPosition. | |
double | GetNamedPositionValue (const int index) const |
GetNamedPositionValue. | |
NamedPosConfig | GetNamedPositionConfig (const std::string &named_pos) const |
GetNamedPositionType. | |
bool | FindNamedPositionValue (const std::string named_pos, double &position) const |
Find value associated to a named position. | |
bool | FindNamedPositionValue (const double position, std::string &name) const |
Find value associated to a named position in UU. | |
double | GetNpTolerance () const |
Get named position tolerance. | |
![]() | |
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 DrotConfig 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 motor with the purpose to write it into the controller or just to keep it in memory.
The content of the vector will be used by the OPCUA interface to write the attributes in batch write.
std::runtime_error | in case of an error |
Reimplemented from ifw::fcf::devmgr::motor::MotorConfig.
|
inlinevirtual |
Get name of the device mapping file.
Reimplemented from ifw::fcf::devmgr::common::DeviceConfig.
|
inline |
|
inline |