HydroCouple  2.0.0-alpha.1
HydroCouple Interface Definitions
Loading...
Searching...
No Matches
HydroCouple::ILicensedComponent Class Referenceabstract

ILicensedComponent is an optional side interface for components that require license validation. More...

#include <hydrocouple.h>

Collaboration diagram for HydroCouple::ILicensedComponent:

Public Member Functions

virtual ~ILicensedComponent ()=default
 ILicensedComponent::~ILicensedComponent is a virtual destructor.
 
virtual bool validateLicense (const std::string &licenseInfo, std::string &validationMessage)=0
 Checks if license is valid and persists license information.
 
virtual bool validateLicense (std::string &validationMessage)=0
 validateLicense Checks if component is licensed and returns.
 

Detailed Description

ILicensedComponent is an optional side interface for components that require license validation.

Licensing was removed from IComponentInfo so that headless HPC and cloud builds need not implement licensing stubs. Components that require licensing implement this interface and advertise Capability::Licensing.

Constructor & Destructor Documentation

◆ ~ILicensedComponent()

virtual HydroCouple::ILicensedComponent::~ILicensedComponent ( )
virtualdefault

ILicensedComponent::~ILicensedComponent is a virtual destructor.

Member Function Documentation

◆ validateLicense() [1/2]

virtual bool HydroCouple::ILicensedComponent::validateLicense ( const std::string & licenseInfo,
std::string & validationMessage )
nodiscardpure virtual

Checks if license is valid and persists license information.

Developer is responsible for implementing this validation based on a license.

Parameters
[in]licenseInfolicense information to use to register this component.
[out]validationMessageA validation message associated with the license validation process.
Returns
true if license is valid otherwise false.

◆ validateLicense() [2/2]

virtual bool HydroCouple::ILicensedComponent::validateLicense ( std::string & validationMessage)
nodiscardpure virtual

validateLicense Checks if component is licensed and returns.

Parameters
[out]validationMessageA validation message associated with the license validation process.
Returns
true if component is licensed otherwise false.

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