|
Motion Master
|
#include <virtual_parameter.h>

Public Types | |
| enum class | Type { kNotDefined = 0 , kIghOdEntry , kSoemOdEntry , kMock , kEthernetOdEntry } |
| enum class | ValueType { kUnspecified = 0 , kBoolean , kInteger8 , kInteger16 , kInteger32 , kUnsignedInteger8 , kUnsignedInteger16 , kUnsignedInteger32 , kFloat , kString , kOctetString , kUnicodeString , kEnum , kOther } |
| enum class | PdoMapping { kNotPdoMapped , kRxPdoMapped , kTxPdoMapped } |
Public Member Functions | |
| virtual | ~VirtualParameter ()=default |
| virtual Type | get_parameter_type () |
| Get the type of the parameter. | |
| virtual uint16_t | get_index ()=0 |
| Get the index of the parameter. | |
| virtual uint8_t | get_subindex ()=0 |
| Get the subindex of the parameter. | |
| virtual bool | is_pdo_mapped ()=0 |
| Check if the parameter is PDO mapped. | |
| virtual uint64_t | get_raw_value ()=0 |
| Get the raw (64-bit unsigned integer) value of the OD entry. | |
| virtual uint64_t | get_raw_value (bool force_refresh)=0 |
| Get the raw (64-bit unsigned integer) value of the OD entry. | |
| virtual int32_t | get_int_value ()=0 |
| Get the integer value of the parameter. | |
| virtual int32_t | get_int_value (bool force_refresh)=0 |
| Get the integer value of the parameter. | |
| virtual float | get_float_value ()=0 |
| Get the float value of the parameter. | |
| virtual float | get_float_value (bool force_refresh)=0 |
| Get the float value of the parameter. | |
| virtual std::string | get_string_value ()=0 |
| Get the string value of the parameter. | |
| virtual std::string | get_string_value (bool force_refresh)=0 |
| Get the string value of the parameter. | |
| virtual bool | get_value_status ()=0 |
| Check the current status of the parameter value. | |
| virtual int32_t | set_raw_value (uint64_t value)=0 |
| Set a raw (64-bit unsigned integer) value. | |
| virtual int32_t | set_value (int32_t value)=0 |
| Set an integer value. | |
| virtual int32_t | set_value (float value)=0 |
| Set a float value. | |
| virtual int32_t | set_value (const std::string &value)=0 |
| Set a string value. | |
| virtual ValueType | get_value_type ()=0 |
| Get the parameter value type. | |
| virtual std::string | get_name ()=0 |
| Get the name of the parameter. | |
| virtual std::string | get_parent_name ()=0 |
| Get the parameter parent name. | |
| virtual bool | is_read () |
| Check if the parameter can be read. | |
| virtual bool | is_write () |
| Check if the parameter can be written into. | |
| virtual std::string | get_unit () |
| Get the defined unit of the parameter value. | |
| virtual int32_t | get_min () |
| Get the minimum value the parameter should hold. | |
| virtual int32_t | get_max () |
| Get the maximum value the parameter should hold. | |
| virtual bool | is_value_fresh ()=0 |
| Check if the value is fresh. | |
|
strong |
|
strong |
|
strong |
|
virtualdefault |
|
pure virtual |
Get the float value of the parameter.
Implemented in EthernetOdEntry, MockParameter, and SoemOdEntry.
|
pure virtual |
Get the float value of the parameter.
| force_refresh | force the value refresh |
Implemented in EthernetOdEntry, MockParameter, and SoemOdEntry.
|
pure virtual |
Get the index of the parameter.
Implemented in EthernetOdEntry, MockParameter, and SoemOdEntry.
|
pure virtual |
Get the integer value of the parameter.
Implemented in EthernetOdEntry, MockParameter, and SoemOdEntry.
|
pure virtual |
Get the integer value of the parameter.
| force_refresh | force the value refresh |
Implemented in EthernetOdEntry, MockParameter, and SoemOdEntry.
|
inlinevirtual |
Get the maximum value the parameter should hold.
IMPORTANT: Not being used currently
Reimplemented in EthernetOdEntry, MockParameter, and SoemOdEntry.
|
inlinevirtual |
Get the minimum value the parameter should hold.
IMPORTANT: Not being used currently
Reimplemented in EthernetOdEntry, MockParameter, and SoemOdEntry.
|
pure virtual |
Get the name of the parameter.
Implemented in EthernetOdEntry, MockParameter, and SoemOdEntry.
|
inlinevirtual |
Get the type of the parameter.
Reimplemented in EthernetOdEntry, MockParameter, and SoemOdEntry.
|
pure virtual |
Get the parameter parent name.
This is the name of the group a (sub-)parameter is a part of (the name of the parent parameter if it is an array or a record)
Implemented in EthernetOdEntry, MockParameter, and SoemOdEntry.
|
pure virtual |
Get the raw (64-bit unsigned integer) value of the OD entry.
Implemented in EthernetOdEntry, MockParameter, and SoemOdEntry.
|
pure virtual |
Get the raw (64-bit unsigned integer) value of the OD entry.
| force_refresh | force the value refresh |
Implemented in EthernetOdEntry, MockParameter, and SoemOdEntry.
|
pure virtual |
Get the string value of the parameter.
| force_refresh | force the value refresh |
Implemented in EthernetOdEntry, MockParameter, and SoemOdEntry.
|
pure virtual |
Get the string value of the parameter.
| force_refresh | force the value refresh |
Implemented in EthernetOdEntry, MockParameter, and SoemOdEntry.
|
pure virtual |
Get the subindex of the parameter.
Implemented in EthernetOdEntry, MockParameter, and SoemOdEntry.
|
inlinevirtual |
Get the defined unit of the parameter value.
Reimplemented in EthernetOdEntry, MockParameter, and SoemOdEntry.
|
pure virtual |
Check the current status of the parameter value.
For example, the value of the parameter can fail to refresh.
Implemented in EthernetOdEntry, MockParameter, and SoemOdEntry.
|
pure virtual |
Get the parameter value type.
Implemented in EthernetOdEntry, MockParameter, and SoemOdEntry.
|
pure virtual |
Check if the parameter is PDO mapped.
IMPORTANT: Not available for all types of parameters
Implemented in EthernetOdEntry, MockParameter, and SoemOdEntry.
|
inlinevirtual |
Check if the parameter can be read.
Reimplemented in EthernetOdEntry, MockParameter, and SoemOdEntry.
|
pure virtual |
Check if the value is fresh.
Implemented in EthernetOdEntry, MockParameter, and SoemOdEntry.
|
inlinevirtual |
Check if the parameter can be written into.
Reimplemented in EthernetOdEntry, MockParameter, and SoemOdEntry.
|
pure virtual |
Set a raw (64-bit unsigned integer) value.
| value | value to set |
Implemented in EthernetOdEntry, MockParameter, and SoemOdEntry.
|
pure virtual |
Set a string value.
| value | value to set |
Implemented in EthernetOdEntry, MockParameter, and SoemOdEntry.
|
pure virtual |
Set a float value.
| value | value to set |
Implemented in EthernetOdEntry, MockParameter, and SoemOdEntry.
|
pure virtual |
Set an integer value.
| value | value to set |
Implemented in EthernetOdEntry, MockParameter, and SoemOdEntry.