.. include:: ../substitutions

.. oe:namespace:: OESystem

.. meta::
   :keywords: OEMTZMapTypeFromString

.. oe:function:: OEMTZMapTypeFromString

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

      .. oe:api::

         unsigned int OEMTZMapTypeFromString(const std::string& maptype)

   .. oe:language:: python

      .. oe:api:: python

         OEMTZMapTypeFromString(maptype: str) -> int

   Converts the human readable string output by :oe:func:`OESystem::OEMTZMapTypeToString`
   into the a MTZ map type.
   Returns :oe:const:`OESystem::OEMTZMapType::None` upon failure.

   .. seealso::

      * :oe:constns:`OESystem::OEMTZMapType` namespace
      * :oe:func:`OESystem::OEReadMTZ` function
      * :oe:func:`OESystem::OEMTZMapTypeToString` function

   .. seealso::

      * :oe:func:`OESystem::OEReadMTZ` function
