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

.. oe:namespace:: OEChem

.. meta::
   :keywords: OECreateAtomSmartsString

.. oe:function:: OECreateAtomSmartsString

   .. attention::

      |PRELIMINARY-API|

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

      .. oe:api::

         bool OECreateAtomSmartsString(std::string& str,
                                       const OEChem::OEAtomBase* atm,
                                       unsigned int atomSMARTSFlags = OESMARTSAtomFlag::AtomDefault,
                                       bool bExplicitDelim = true)



   .. oe:language:: python

      .. oe:api::

         OECreateSmartsAtomString(OEAtomBase atm, int atomflags,
                                  bool delim = True) -> str

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

      For a specified atom, generate a SMARTS string of query qualifiers based on the specified atom's environment
      and using the constraints defined by the :oe:constns:`OEChem::OESMARTSAtomFlag` namespace. The ``bExplicitDelim``
      argument indicates if the generated property list should be explicitly ``;`` delimited in the output to simplify
      post-processing for custom constraint generations.

   .. oe:language:: java csharp

      This function is only provided in C++ and python.
