// -*- mode: c++; indent-tabs-mode: nil; tab-width:2 -*- #include "OptionsBaseClass.h" #include "moses/Util.h" namespace Moses { #ifdef HAVE_XMLRPC_C bool OptionsBaseClass:: update(std::mapconst& params) { return true; } #endif #ifdef HAVE_XMLRPC_C bool OptionsBaseClass:: check(std::map const& param, std::string const key, bool dfltval) { std::map::const_iterator m; m = param.find(key); if (m == param.end()) return dfltval; return Scan(xmlrpc_c::value_string(m->second)); } #endif }