Device type.
More...
#include <VSQDeviceType.h>
◆ VSQDeviceType() [1/3]
| VSQDeviceType::VSQDeviceType |
( |
| ) |
|
|
inline |
Default device type constructor.
◆ VSQDeviceType() [2/3]
Copy device type constructor.
◆ VSQDeviceType() [3/3]
◆ description()
| QString VSQDeviceType::description |
( |
bool |
stopOnZero = true, |
|
|
char |
nonPrintableSymbols = ' ' |
|
) |
| const |
Describe device type.
Call this function to receive text description. You can configure it by specifying stopOnZero and nonPrintableSymbols arguments.
- Parameters
-
| stopOnZero | Stop conversion on the first '\0' symbol. By default it is true. |
| nonPrintableSymbols | Symbol to output on the non printable symbol. By default it is space. |
- Returns
- Device type text description
◆ equal()
| bool VSQDeviceType::equal |
( |
const VSQDeviceType & |
deviceType | ) |
const |
|
inline |
Compare device types.
- Parameters
-
| deviceType | Device type to compare with the current one |
- Returns
- true if they are equal
◆ operator const char *()
| VSQDeviceType::operator const char * |
( |
| ) |
const |
Get device type as symbols array.
◆ operator const uint8_t *()
| VSQDeviceType::operator const uint8_t * |
( |
| ) |
const |
Get device type as bytes array.
◆ operator QString()
| VSQDeviceType::operator QString |
( |
| ) |
const |
|
inline |
Get device type text description.
◆ operator=() [1/2]
Assign device type.
This function calls #set function
- Parameters
-
- Returns
- Reference to the VSQDeviceSerial instance
◆ operator=() [2/2]
Assign device type.
This function calls #set function
- Parameters
-
- Returns
- Reference to the VSQDeviceSerial instance
◆ operator==()
| bool VSQDeviceType::operator== |
( |
const VSQDeviceType & |
deviceType | ) |
const |
|
inline |
Compare device types.
This function calls equal function
- Parameters
-
| deviceType | Device type to compare with the current one |
- Returns
- true if they are equal
The documentation for this class was generated from the following file: