.. include:: ../../toolkit-substitutions

.. oe:namespace:: OEChem

..  _OEChem_OEGetSubSearchScreenType:

.. oe:function:: OEGetSubSearchScreenType

   .. attention::

      |TWOLANGUAGE|

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

      .. oe:api::

         const OESubSearchScreenTypeBase* OEGetSubSearchScreenType(const unsigned stype)

   .. oe:language:: python

      .. oe:api:: python

         OEGetSubSearchScreenType(stype: int) -> OESubSearchScreenTypeBase

   Converts a constant from the :oe:constns:`OEChem::OESubSearchScreenType`
   namespace into an internal screen type (:ref:`OESubSearchScreenTypeBase <OEChem_OESubSearchScreenTypeBase>`).

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

      .. oe:api::

         const OESubSearchScreenTypeBase* OEGetSubSearchScreenType(const std::string& stypestr)

   .. oe:language:: python

      .. oe:api:: python

         OEGetSubSearchScreenType(stypestr: str) -> OESubSearchScreenTypeBase

   Convert a string (such as ``"Molecule SubSearch Screen,ver=0.9.0"``) into
   an internal screen type (:ref:`OESubSearchScreenTypeBase <OEChem_OESubSearchScreenTypeBase>`).
   The function returns a null pointer for invalid strings.

   .. seealso::

      * :ref:`OESubSearchScreenTypeBase <OEChem_OESubSearchScreenTypeBase>` class
      * :oe:meth:`OEChem::OESubSearchScreenTypeBase::GetScreenTypeString` method
      * :oe:constns:`OEChem::OESubSearchScreenType` namespace


   .. admonition:: Code Example

      * :ref:`section_example_oechem_makefastss` example
      * :ref:`section_example_oechem_searchfastss` example
