.. oe:namespace:: OESaiph

.. meta::
   :keywords: OESaiphIsLicensed

.. _OESaiph_OESaiphIsLicensed:

.. oe:function:: OESaiphIsLicensed

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

      .. oe:api::

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

   .. oe:language:: python

      .. oe:api:: python

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

   This function 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 **Saiph TK** functionality.

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

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

   .. seealso::

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