MotionLib
1.0.0
SamBuCa motion library
|
devices interface More...
Classes | |
class | smc::Axis |
class | smc::AxisPositionMonitor |
This object represent a link between an axis and a position sensor. More... | |
class | smc::DeviceBase |
class | smc::Gpio |
class | smc::PlatformDevice |
class | smc::Trigger |
Typedefs | |
typedef std::string | smc::DeviceId |
Enumerations | |
enum class | smc::DeviceType { smc::AXIS , smc::POSITION_SENSOR , smc::GPIO , smc::TRIGGER , smc::PLATFORM , smc::AXIS_POSITION_MONITOR , smc::UNKNOWN = -1 } |
List of possible device types supported. More... | |
Functions | |
const std::string & | smc::to_string (Axis::State state) |
convert State to string More... | |
const std::string & | smc::to_string (AxisPositionMonitor::State state) |
convert state to string More... | |
template<> | |
AxisPositionMonitor::State | smc::from_string (const std::string &) |
convert string to state More... | |
const std::string & | smc::to_string (DeviceType type) |
convert DeviceType to string More... | |
template<> | |
const std::set< AxisPositionMonitor::State > & | smc::getEnumValues () |
Get devices types list (to be iterated) More... | |
devices interface
|
strong |
List of possible device types supported.
Definition at line 51 of file DeviceBase.hpp.
units::io_port_t smc::from_string | ( | const std::string & | ) |
convert string to state
base from_string template
convert string to IOPort
convert string to Unit
convert string to DeviceType
[in] | str | the string to parse |
[in] | str | the string to parse |
[in] | str | the string to parse |
[in] | str | the string to parse |
this template is customized for (de)serializable types
Definition at line 74 of file AxisPositionMonitor.cpp.
const std::set< units::Unit > & smc::getEnumValues | ( | ) |
Get devices types list (to be iterated)
List values for enum.
Get Unit values list (to be iterated)
T |
Definition at line 60 of file AxisPositionMonitor.cpp.
const std::string & smc::to_string | ( | Axis::State | state | ) |
const std::string & smc::to_string | ( | AxisPositionMonitor::State | state | ) |
convert state to string
state | the state to convert |
Definition at line 65 of file AxisPositionMonitor.cpp.
const std::string & smc::to_string | ( | DeviceType | type | ) |
convert DeviceType to string
[in] | type | type to convert |
Definition at line 52 of file DeviceBase.cpp.