.. include:: ../../toolkit-substitutions

.. oe:namespace:: OEChem

.. oe:function:: OEReadMonomerSet

   .. attention::

      |PRELIMINARY-API|

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

      .. oe:api::

         bool OEReadMonomerSet(OEMonomerSet& monomers,
                               const std::string& jsonFileName)

   .. oe:language:: python

      .. oe:api:: python

         OEReadMonomerSet(monomers: OEMonomerSet, jsonFileName: str) -> bool

   Reads all monomer definitions from the given json file and adds them to the 
   the :oe:cls:`OEChem::OEMonomerSet` objects.

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

      .. oe:api::

         bool OEReadMonomerSet(OEMonomerSet& monomers,
                               const std::string& jsonFileName,
                               const std::string& codeSet)

   .. oe:language:: python

      .. oe:api:: python

         OEReadMonomerSet(monomers: OEMonomerSet, jsonFileName: str,
                          codeSet: str) -> bool

   Reads all monomer definitions from the given json file and but only adds those to 
   the :oe:cls:`OEChem::OEMonomerSet` objects which are defined in the given code-set.

   .. seealso::

      * :oe:cls:`OEChem::OEMonomerSet` class
      * :oe:func:`OEChem::OELoadStandardMonomerSet` and :oe:func:`OEChem::OELoadOpenEyeMonomerSet` functions
      * :oe:func:`OEChem::OEWriteMonomerSet` function