CVB++ 14.0
LicenseInfo Class Referencefinal

Information about CVB licenses. More...

#include <cvb/utilities/system_info.hpp>

Public Member Functions

int SerialNumber () const noexcept
 The 32 bit CVB serial number of this license. More...
 
bool IsFoundation () const noexcept
 Check if the license includes the Common Vision Blox Foundation package. More...
 

Friends

std::vector< LicenseInfoGetLicenseInfo ()
 Get information about available licenses. More...
 

Detailed Description

Information about CVB licenses.

Member Function Documentation

◆ IsFoundation()

bool IsFoundation ( ) const
inlinenoexcept

Check if the license includes the Common Vision Blox Foundation package.

Returns
True if license is valid, false otherwise.
Exceptions
Doesnot throw any exception.

◆ SerialNumber()

int SerialNumber ( ) const
inlinenoexcept

The 32 bit CVB serial number of this license.

Returns
The serial number.
Exceptions
Doesnot throw any exception.

Friends And Related Function Documentation

◆ GetLicenseInfo

std::vector< LicenseInfo > GetLicenseInfo ( )
friend

Get information about available licenses.

Returns
A vector containing the currently available licenses.
Exceptions
Anyexception derived from std::exception including CvbException.

In theory, the collection of available licenses can change any time. However, it is fairly unlikely that during runtime someone unplugs a dongle or removes a Node Locked license, so Common Vision Blox does not implement a costly push/event model for notifying clients during runtime about the presence of new licenses or the loss of a license. Instead, the license information can and needs to be queried using this method.