.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OEIsReadable

.. oe:function:: OEIsReadable

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

      .. oe:api::

         bool OEIsReadable(unsigned int format)
         bool OEIsReadable(const std::string& filename)
         bool OEIsReadable(unsigned int format, unsigned int flavor)
         bool OEIsReadable(const std::string& filename, unsigned int flavor)

   .. oe:language:: python

      .. oe:api:: python

         OEIsReadable(format: int) -> bool
         OEIsReadable(filename: str) -> bool
         OEIsReadable(format: int, flavor: int) -> bool
         OEIsReadable(filename: str, flavor: int) -> bool

   Returns ``true`` if the supplied file format is readable by **OEChem TK** via :oe:func:`OEChem::OEReadMolecule`. The
   'filename' can be a file name or a file extension.  The 'format'
   parameter value should be drawn from the :oe:constns:`OEChem::OEFormat`
   namespace.

   .. seealso::

      * :oe:func:`OEChem::OEReadMolecule` function
