.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OEGetDefaultIFlavor

.. oe:function:: OEGetDefaultIFlavor

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

      .. oe:api::

         unsigned int OEGetDefaultIFlavor(unsigned int format)

   .. oe:language:: python

      .. oe:api:: python

         OEGetDefaultIFlavor(format: int) -> int

   Returns the default input file flavor associated with the given file format.
   The set of valid file formats are defined in the :oe:constns:`OEChem::OEFormat`
   namespace.
   The default flavors are automatically set by the
   :ref:`oemolistream <OEChem_oemolistream>` constructors. The flavor for any
   format can be set using the :oe:meth:`OEChem::oemolstreambase::SetFlavor`
   method.

   .. seealso::

      * :oe:func:`OEChem::OESetDefaultFlavors` function.
      * :oe:func:`OEChem::OESetDefaultIFlavors` function.
      * :oe:constns:`OEChem::OEIFlavor` and :ref:`the OEFormat namespace <OEChem_OEFormat>`.
      * :oe:meth:`OEChem::oemolstreambase::SetFlavor` and :oe:meth:`OEChem::oemolstreambase::GetFlavor` methods.
