.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OEInitHandler

.. oe:function:: OEInitHandler

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

      .. oe:api::

         bool OEInitHandler(OESystem::OEBinaryIOHandlerBase& hand,
                            const char* readOptHex, const char* writeOptHex)

   .. oe:language:: python

      .. oe:api:: python

         OEInitHandler(hand: OEBinaryIOHandlerBase, readOptHex: str,
                       writeOptHex: str) -> bool

   Initialize the :ref:`OEBinaryIOHandlerBase <OESystem_OEBinaryIOHandlerBase>` with all
   the handlers specified by the options ``readOptHex`` and
   ``writeOptHex`` for reading and writing OEB files. The hex strings
   passed in as arguments specify which handlers should be used. The
   hex strings should be the return value of one of the following
   functions:

   - :oe:func:`OEChem::OEBDefaultOpts`
   - :oe:func:`OEChem::OEBGZipCompressOpts`
   - :oe:func:`OEChem::OEBRotCompressOpts`
   - :oe:func:`OEChem::OEBAtomIntTypeOpts`


