Virgil IoT KIT
Public Member Functions
VSQDeviceType Class Reference

Device type. More...

#include <VSQDeviceType.h>

Public Member Functions

 VSQDeviceType ()
 Default device type constructor. More...
 
 VSQDeviceType (const VSQDeviceType &deviceType)
 Copy device type constructor. More...
 
 VSQDeviceType (const VirgilIoTKit::vs_device_type_t &buf)
 vs_device_type_t device type constructor More...
 
VSQDeviceTypeoperator= (const VSQDeviceType &deviceType)
 Assign device type. More...
 
VSQDeviceTypeoperator= (const VirgilIoTKit::vs_device_type_t &buf)
 Assign device type. More...
 
bool operator== (const VSQDeviceType &deviceType) const
 Compare device types. More...
 
QString description (bool stopOnZero=true, char nonPrintableSymbols=' ') const
 Describe device type. More...
 
bool equal (const VSQDeviceType &deviceType) const
 Compare device types. More...
 
 operator const char * () const
 Get device type as symbols array. More...
 
 operator const uint8_t * () const
 Get device type as bytes array. More...
 
 operator QString () const
 Get device type text description. More...
 

Detailed Description

Device type.

Constructor & Destructor Documentation

◆ VSQDeviceType() [1/3]

VSQDeviceType::VSQDeviceType ( )
inline

Default device type constructor.

◆ VSQDeviceType() [2/3]

VSQDeviceType::VSQDeviceType ( const VSQDeviceType deviceType)
inline

Copy device type constructor.

◆ VSQDeviceType() [3/3]

VSQDeviceType::VSQDeviceType ( const VirgilIoTKit::vs_device_type_t buf)
inline

vs_device_type_t device type constructor

Member Function Documentation

◆ 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
stopOnZeroStop conversion on the first '\0' symbol. By default it is true.
nonPrintableSymbolsSymbol to output on the non printable symbol. By default it is space.
Returns
Device type text description
Here is the caller graph for this function:

◆ equal()

bool VSQDeviceType::equal ( const VSQDeviceType deviceType) const
inline

Compare device types.

Parameters
deviceTypeDevice type to compare with the current one
Returns
true if they are equal
Here is the caller graph for this function:

◆ 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.

Here is the call graph for this function:

◆ operator=() [1/2]

VSQDeviceType& VSQDeviceType::operator= ( const VirgilIoTKit::vs_device_type_t buf)
inline

Assign device type.

This function calls #set function

Parameters
deviceTypeDevice type
Returns
Reference to the VSQDeviceSerial instance

◆ operator=() [2/2]

VSQDeviceType& VSQDeviceType::operator= ( const VSQDeviceType deviceType)
inline

Assign device type.

This function calls #set function

Parameters
deviceTypeDevice type
Returns
Reference to the VSQDeviceSerial instance

◆ operator==()

bool VSQDeviceType::operator== ( const VSQDeviceType deviceType) const
inline

Compare device types.

This function calls equal function

Parameters
deviceTypeDevice type to compare with the current one
Returns
true if they are equal
Here is the call graph for this function:

The documentation for this class was generated from the following file: