This class provides various static utility functions.
More...
#include <utils.h>
|
static std::string | type_to_string (Type type) |
| Converts data types to a string.
|
|
static std::string | data_type_to_string (DataType type) |
| Converts CanOpen data types to a string.
|
|
static uint8_t | get_type_size (Type type) |
| Returns the size of a data type in bytes.
|
|
static Type | type_code_to_type (uint16_t code) |
| Maps type codes from an EDS file to a data type. More...
|
|
static std::string | escape (const std::string &str) |
| Converts entry names to lower case and replaces all spaces and '-' by underscores.
|
|
static unsigned long long | hexstr_to_uint (std::string str) |
| Converts a string containing a hexadecimal numer to unsigned.
|
|
static unsigned long long | decstr_to_uint (std::string str) |
| Converts a string containing a decimal numer to unsigned.
|
|
static AccessType | string_to_access_type (std::string str) |
| Converts a string representation of AccessType from an EDS file to AccessType.
|
|
static std::string | access_type_to_string (AccessType type) |
| Converts access types to a string.
|
|
This class provides various static utility functions.
Definition at line 42 of file utils.h.
Type kaco::Utils::type_code_to_type |
( |
uint16_t |
code | ) |
|
|
static |
Maps type codes from an EDS file to a data type.
- See also
- enum DataType in types.h
Definition at line 137 of file utils.cpp.
The documentation for this struct was generated from the following files: