Virgil IoT KIT
Public Member Functions
VSQManufactureId Class Reference

Manufacture identifier. More...

#include <VSQManufactureId.h>

Public Member Functions

 VSQManufactureId ()
 Default manufacture identifier constructor. More...
 
 VSQManufactureId (const VSQManufactureId &manufactureId)
 Manufacture identifier copy constructor. More...
 
 VSQManufactureId (const VirgilIoTKit::vs_device_manufacture_id_t &buf)
 Initialize manufacture identifier from VirgilIoTKit::vs_device_manufacture_id_t. More...
 
VSQManufactureIdoperator= (const VSQManufactureId &manufactureId)
 Assign manufacture identifier. More...
 
VSQManufactureIdoperator= (const VirgilIoTKit::vs_device_manufacture_id_t &buf)
 Assign manufacture identifier. More...
 
bool operator== (const VSQManufactureId &manufactureId) const
 Compare manufacture identifiers. More...
 
QString description (bool stopOnZero=true, char nonPrintableSymbols=' ') const
 Describe manufacture identifier. More...
 
bool equal (const VSQManufactureId &manufactureId) const
 Compare manufacture identifiers. More...
 
 operator const char * () const
 Get manufacture identifier as symbols array. More...
 
 operator const uint8_t * () const
 Get manufacture identifier as bytes array. More...
 
 operator QString () const
 Get manufacture identifier text description. More...
 

Detailed Description

Manufacture identifier.

Constructor & Destructor Documentation

◆ VSQManufactureId() [1/3]

VSQManufactureId::VSQManufactureId ( )
inline

Default manufacture identifier constructor.

◆ VSQManufactureId() [2/3]

VSQManufactureId::VSQManufactureId ( const VSQManufactureId manufactureId)
inline

Manufacture identifier copy constructor.

◆ VSQManufactureId() [3/3]

VSQManufactureId::VSQManufactureId ( const VirgilIoTKit::vs_device_manufacture_id_t buf)
inline

Initialize manufacture identifier from VirgilIoTKit::vs_device_manufacture_id_t.

Member Function Documentation

◆ description()

QString VSQManufactureId::description ( bool  stopOnZero = true,
char  nonPrintableSymbols = ' ' 
) const

Describe manufacture identifier.

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
Manufacture identifier text description
Here is the caller graph for this function:

◆ equal()

bool VSQManufactureId::equal ( const VSQManufactureId manufactureId) const
inline

Compare manufacture identifiers.

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

◆ operator const char *()

VSQManufactureId::operator const char * ( ) const

Get manufacture identifier as symbols array.

◆ operator const uint8_t *()

VSQManufactureId::operator const uint8_t * ( ) const

Get manufacture identifier as bytes array.

◆ operator QString()

VSQManufactureId::operator QString ( ) const
inline

Get manufacture identifier text description.

Here is the call graph for this function:

◆ operator=() [1/2]

VSQManufactureId& VSQManufactureId::operator= ( const VirgilIoTKit::vs_device_manufacture_id_t buf)
inline

Assign manufacture identifier.

Parameters
bufManufacture identifier buffer to copy
Returns
Current VSQManufactureId instance

◆ operator=() [2/2]

VSQManufactureId& VSQManufactureId::operator= ( const VSQManufactureId manufactureId)
inline

Assign manufacture identifier.

Parameters
manufactureIdManufacture identifier to copy
Returns
Current VSQManufactureId instance

◆ operator==()

bool VSQManufactureId::operator== ( const VSQManufactureId manufactureId) const
inline

Compare manufacture identifiers.

Parameters
manufactureIdManufacture identifier to be compared with the current one
Returns
true if both manufacture identifiers are equal
Here is the call graph for this function:

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