// The libMesh Finite Element Library.
// Copyright (C) 2002-2019 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner

// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.

// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// Lesser General Public License for more details.

// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA



#ifndef LIBMESH_STRING_TO_ENUM_H
#define LIBMESH_STRING_TO_ENUM_H



// C++ includes
#include <string>

namespace libMesh
{

namespace Utility
{

/**
 * \returns the enumeration of type \p T which matches the string \p s.
 */
template <typename T>
T string_to_enum (const std::string & s);

} // namespace Utility
} // namespace libMesh


#endif // LIBMESH_STRING_TO_ENUM_H

// The libMesh Finite Element Library.
// Copyright (C) 2002-2019 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner

// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.

// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// Lesser General Public License for more details.

// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA



#ifndef LIBMESH_STRING_TO_ENUM_H
#define LIBMESH_STRING_TO_ENUM_H



// libMesh includes
 #include "libmesh/enum_to_string.h" // backwards compatibility

// C++ includes
#include <string>

namespace libMesh
{

namespace Utility
{

/**
 * \returns the enumeration of type \p T which matches the string \p s.
 */
template <typename T>
T string_to_enum (const std::string & s);

} // namespace Utility
} // namespace libMesh


#endif // LIBMESH_STRING_TO_ENUM_H

Include new header in old header for backwards compatibility.
Include new header in old header for backwards compatibility.
