.. # split from OEDockingFunctions.rst:402


.. oe:namespace:: OEDocking

.. meta::
   :keywords: OEScoreTypeGetValue

.. oe:function:: OEScoreTypeGetValue

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

      .. oe:api::

         unsigned int OEScoreTypeGetValue(std::string name)

   .. oe:language:: python

      .. oe:api:: python

         OEScoreTypeGetValue(name: str) -> int

   Returns the value of a constant from this namespace associated with the
   scoring function *name*, or :oe:const:`OEDocking::OEScoreType::INVALID` if
   the name is not recognized.

   This function is defined within the OEScoreType namespace.

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

      .. oe:api::

         unsigned int OEScoreTypeGetValue(const OESystem::OEInterface& itf,
                                          std::string flagName)

   .. oe:language:: python

      .. oe:api:: python

         OEScoreTypeGetValue(itf: OEInterface, parameter: str) -> int

   Used in conjunction with the :oe:func:`OEDocking::OEScoreTypeConfigure` function.
   Returns a constant from this namespace associated with the scoring function the
   user specified on the command line, or :oe:const:`OEDocking::OEScoreType::Default`
   if the user did not specify a value.  *itf* and *flagName* should be the same as
   those passed to the :oe:func:`OEDocking::OEScoreTypeConfigure` function and
   :oe:func:`OESystem::OEParseCommandLine` should have been called on *itf*.

