company logo

Database :: applicationLicensed - Check Application License

The function checks the license for the application name passed to the function. Applications may request specific licenses, which can be checked with this function. When the application has been licensed properly, the function returns true. The function also returns true, when the application name passed does not require a license or an empty name is passed. In case the application requires a license but has not been licensed, the function returns false.

Notes:

Only applications requiering a licence have to be registered in the database. Hence, any application name not known to the database is considered as an application name not reuiering a licence, i.e. the function will not detect "invalid" application names.

Return value:  Success ( bool  )

The value is true when the function was executed successfully. Otherwise the value is set to false.

Implementation details

bool Database  :: applicationLicensed ( odaba::String &sApplicationName )
  • sApplicationName - Application name

    The name of the application is, usually, also the section name for application options in the configuration or ini-file.

    In order to pass no application name, an empty string ( String() ) has to be passed.