.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OEGetDefaultOFlavor

.. oe:function:: OEGetDefaultOFlavor

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

      .. oe:api::

         unsigned int OEGetDefaultOFlavor(unsigned int format)

   .. oe:language:: python

      .. oe:api:: python

         OEGetDefaultOFlavor(format: int) -> int

   Returns the default output 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:`oemolostream <OEChem_oemolostream>` 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::OESetDefaultOFlavors` function
      * :oe:constns:`OEChem::OEOFlavor` and :ref:`the OEFormat namespace <OEChem_OEFormat>`
      * :oe:meth:`OEChem::oemolstreambase::SetFlavor` and :oe:meth:`OEChem::oemolstreambase::GetFlavor` methods
