.. _section_example_oechem_oecheminfo:

Print OEChem and file format information
================================================================================

A program that prints the current OEChem version, platform, build
date, and the release name of the overall toolkits being used. It also
prints details of all the molecule file formats supported by the OEChem
toolkit and whether they are readable and/or writable.

Example
--------------------------------------------------------------------------------

.. oe:language:: c++

   .. code-block:: console

      prompt> oecheminfo

.. oe:language:: python

   .. code-block:: console

      prompt> oecheminfo.py

.. oe:language:: java

   .. code-block:: console

      prompt> OEChemInfo

.. oe:language:: csharp

   .. code-block:: console

      prompt> OEChemInfo

Code
--------------------------------------------------------------------------------

.. oe:language:: c++

   .. only:: oehtml

      .. admonition:: Download code

         :download:`oecheminfo.cpp <../../../../../sublibs/tklibs/oechem/examples/oecheminfo.cpp>`

   .. only:: oepdf

      .. oe:source:: oecheminfo.cpp
         :language: c++

.. oe:language:: python

   .. only:: oehtml

      .. admonition:: Download code

         :download:`oecheminfo.py <../../../../../wrappers/python/examples/oechem/oecheminfo.py>`

      .. literalinclude:: ../../../../../wrappers/python/examples/oechem/oecheminfo.py


   .. only:: oepdf

      .. oe:source:: oecheminfo.py
         :language: python


.. oe:language:: java

   .. only:: oehtml

      .. admonition:: Download code

         :download:`OEChemInfo.java <../../../../../wrappers/java/examples/openeye/examples/oechem/OEChemInfo.java>`

   .. only:: oepdf

      .. oe:source:: OEChemInfo.java
         :language: java

.. oe:language:: csharp

   .. only:: oehtml

      .. admonition:: Download code

         :download:`OEChemInfo.cs <../../../../../wrappers/csharp/Csharp-Examples/OEChem/OEChemInfo.cs>`

   .. only:: oepdf

      .. oe:source:: OEChemInfo.cs
         :language: csharp

.. seealso::

   * :oe:func:`OEChem::OEGetFormatString` function
   * :oe:func:`OEChem::OEGetFormatExtension` function
   * :oe:func:`OEChem::OEChemGetRelease` function
   * :oe:func:`OEChem::OEChemGetVersion` function
   * :oe:func:`OEChem::OEChemGetPlatform` function
   * :oe:func:`OEPlatform::OEToolkitsGetRelease` function
