Lely core libraries 2.3.4
|
An accessor providing read-only access to a CANopen sub-object in a local object dictionary. More...
#include <slave.hpp>
Public Member Functions | |
template<class T > | |
operator T () const | |
Returns a copy of the value of the sub-object. | |
const ::std::type_info & | Type () const |
Returns the type of the sub-object. | |
const ::std::type_info & | Type (::std::error_code &ec) const |
Returns the type of the sub-object. | |
template<class T > | |
T | Get () const |
Reads the value of the sub-object. | |
template<class T > | |
T | Get (::std::error_code &ec) const noexcept |
Reads the value of the sub-object. | |
An accessor providing read-only access to a CANopen sub-object in a local object dictionary.
|
inline |
Returns a copy of the value of the sub-object.
lely::canopen::SdoError | if the sub-object does not exist or the type does not match. |
|
inline |
Returns the type of the sub-object.
std::type_info
object representing the type, or typeid(void)
if unknown.lely::canopen::SdoError | if the sub-object does not exist. |
|
inline |
Returns the type of the sub-object.
ec | if the sub-object does not exist, the SDO abort code is stored in ec. |
std::type_info
object representing the type, or typeid(void)
if unknown.
|
inline |
Reads the value of the sub-object.
lely::canopen::SdoError | if the sub-object does not exist or the type does not match. |
|
inlinenoexcept |
Reads the value of the sub-object.
ec | if the sub-object does not exist or the type does not match, the SDO abort code is stored in ec. |