.. oe:namespace:: OEBioisostere

.. meta::
   :keywords: OEBioisostereIsLicensed

.. _OEBioisostere_OEBioisostereIsLicensed:

.. oe:function:: OEBioisostereIsLicensed

   .. oe:language:: c++ java csharp

      .. oe:api::

         bool OEBioisostereIsLicensed(const char* feature = 0,
                                      unsigned int* expdate = 0)

   .. oe:language:: python

      .. oe:api:: python

         OEBioisostereIsLicensed(feature: str = None, expdate: int = None) -> bool

   Determines whether a valid license file is present.  This function may
   be called without a legitimate run-time license to determine whether
   it is safe to call any **Bioisostere TK** functionality.

   The 'feature' argument can be used to check for a valid license to
   **Bioisostere TK** along with the following features: 'python'.
   Pass ``nullptr`` (or ``0``) to check the default **Bioisostere TK** feature.

   The 'expdate' argument can be used to obtain the expiration date of
   the current **Bioisostere TK** license. If non-null, the expiration date
   is written as a ``YYYYMMDD`` integer. Pass ``nullptr`` to ignore.

   .. seealso::

      * :oe:func:`OEChem::OEChemIsLicensed` function
