Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'moses2/parameters/OptionsBaseClass.h')
-rw-r--r--moses2/parameters/OptionsBaseClass.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/moses2/parameters/OptionsBaseClass.h b/moses2/parameters/OptionsBaseClass.h
new file mode 100644
index 000000000..5265e9b23
--- /dev/null
+++ b/moses2/parameters/OptionsBaseClass.h
@@ -0,0 +1,19 @@
+// -*- mode: c++; indent-tabs-mode: nil; tab-width: 2 -*-
+#pragma once
+#include "../legacy/xmlrpc-c.h"
+#include <string>
+#include <map>
+namespace Moses2
+{
+class Parameter;
+
+struct OptionsBaseClass {
+#ifdef HAVE_XMLRPC_C
+ virtual bool
+ update(std::map<std::string,xmlrpc_c::value>const& params);
+#endif
+ bool
+ check(std::map<std::string, xmlrpc_c::value> const& param,
+ std::string const key, bool dfltval);
+};
+}