47 #ifndef MUELU_ML2MUELUPARAMETERTRANSLATOR_HPP
48 #define MUELU_ML2MUELUPARAMETERTRANSLATOR_HPP
53 #include <Teuchos_ParameterList.hpp>
54 #include <Teuchos_XMLParameterListCoreHelpers.hpp>
88 static std::string
translate(Teuchos::ParameterList & paramList,
const std::string& defaultVals=
"") {
96 static std::string
translate(
const std::string & xmlFileName,
const std::string& defaultVals=
"") {
97 Teuchos::RCP<Teuchos::ParameterList> paramList = Teuchos::getParametersFromXmlFile(xmlFileName);
112 static std::string
SetParameterList(
const Teuchos::ParameterList & paramList_in,
const std::string& defaultVals);
121 static std::string
GetSmootherFactory(
const Teuchos::ParameterList& paramList, Teuchos::ParameterList& adaptingParamList,
const std::string& pname,
const std::string& value);
130 static inline std::string &
ltrim(std::string &s) {
131 s.erase(s.begin(), std::find_if(s.begin(), s.end(), std::not1(std::ptr_fun<int, int>(std::isspace))));
136 static inline std::string &
rtrim(std::string &s) {
137 s.erase(std::find_if(s.rbegin(), s.rend(), std::not1(std::ptr_fun<int, int>(std::isspace))).base(), s.end());
142 static inline std::string &
trim(std::string &s) {