| // -*- mode: c++; indent-tabs-mode: nil; tab-width:2 -*- | |
| namespace Moses2 | |
| { | |
| bool | |
| OptionsBaseClass:: | |
| update(std::map<std::string,xmlrpc_c::value>const& params) | |
| { | |
| return true; | |
| } | |
| bool | |
| OptionsBaseClass:: | |
| check(std::map<std::string, xmlrpc_c::value> const& param, | |
| std::string const key, bool dfltval) | |
| { | |
| std::map<std::string, xmlrpc_c::value>::const_iterator m; | |
| m = param.find(key); | |
| if (m == param.end()) return dfltval; | |
| return Scan<bool>(xmlrpc_c::value_string(m->second)); | |
| } | |
| } | |