diff options
author | hieu <hieu@localhost.localdomain> | 2017-03-01 14:41:04 +0300 |
---|---|---|
committer | hieu <hieu@localhost.localdomain> | 2017-03-01 14:41:04 +0300 |
commit | 199b826649e3d80b8e8b8771b5835ecae4837f73 (patch) | |
tree | 63c94a3f875a2264be08b5711028df2b57476c16 /moses | |
parent | 21dc3b611297a2724b983d15392df4c69a849463 (diff) |
add implementations for options update(). Link error on Redhat 7
Diffstat (limited to 'moses')
-rw-r--r-- | moses/parameters/AllOptions.cpp | 5 | ||||
-rw-r--r-- | moses/parameters/CubePruningOptions.cpp | 5 | ||||
-rw-r--r-- | moses/parameters/InputOptions.cpp | 5 | ||||
-rw-r--r-- | moses/parameters/NBestOptions.cpp | 5 | ||||
-rw-r--r-- | moses/parameters/OOVHandlingOptions.cpp | 5 | ||||
-rw-r--r-- | moses/parameters/OptionsBaseClass.cpp | 5 | ||||
-rw-r--r-- | moses/parameters/ReportingOptions.cpp | 5 | ||||
-rw-r--r-- | moses/parameters/SearchOptions.cpp | 5 | ||||
-rw-r--r-- | moses/parameters/SyntaxOptions.cpp | 5 |
9 files changed, 45 insertions, 0 deletions
diff --git a/moses/parameters/AllOptions.cpp b/moses/parameters/AllOptions.cpp index 868b8e4fb..019e1b0c7 100644 --- a/moses/parameters/AllOptions.cpp +++ b/moses/parameters/AllOptions.cpp @@ -101,6 +101,11 @@ namespace Moses if (!syntax.update(param)) return false; return sanity_check(); } +#else + bool + AllOptions:: + update(std::map<std::string,xmlrpc_c::value>const& param) + {} #endif bool diff --git a/moses/parameters/CubePruningOptions.cpp b/moses/parameters/CubePruningOptions.cpp index 793ae2db6..847a421f8 100644 --- a/moses/parameters/CubePruningOptions.cpp +++ b/moses/parameters/CubePruningOptions.cpp @@ -72,6 +72,11 @@ namespace Moses return true; } +#else + bool + CubePruningOptions:: + update(std::map<std::string,xmlrpc_c::value>const& params) + {} #endif diff --git a/moses/parameters/InputOptions.cpp b/moses/parameters/InputOptions.cpp index dbdb2f60e..55bc49885 100644 --- a/moses/parameters/InputOptions.cpp +++ b/moses/parameters/InputOptions.cpp @@ -95,6 +95,11 @@ namespace Moses { xml_policy = Scan<XmlInputType>(xmlrpc_c::value_string(si->second)); return true; } +#else + bool + InputOptions:: + update(std::map<std::string,xmlrpc_c::value>const& param) + {} #endif } diff --git a/moses/parameters/NBestOptions.cpp b/moses/parameters/NBestOptions.cpp index 3000f49df..afae0ed6c 100644 --- a/moses/parameters/NBestOptions.cpp +++ b/moses/parameters/NBestOptions.cpp @@ -62,6 +62,11 @@ update(std::map<std::string,xmlrpc_c::value>const& param) enabled = (nbest_size > 0); return true; } +#else +bool +NBestOptions:: +update(std::map<std::string,xmlrpc_c::value>const& param) +{} #endif diff --git a/moses/parameters/OOVHandlingOptions.cpp b/moses/parameters/OOVHandlingOptions.cpp index 154074664..a55026b98 100644 --- a/moses/parameters/OOVHandlingOptions.cpp +++ b/moses/parameters/OOVHandlingOptions.cpp @@ -43,6 +43,11 @@ namespace Moses { // xml_policy = Scan<XmlInputType>(xmlrpc_c::value_string(si->second)); return true; } +#else + bool + OOVHandlingOptions:: + update(std::map<std::string,xmlrpc_c::value>const& param) + {} #endif } diff --git a/moses/parameters/OptionsBaseClass.cpp b/moses/parameters/OptionsBaseClass.cpp index a19aaf7a6..2b919b1fc 100644 --- a/moses/parameters/OptionsBaseClass.cpp +++ b/moses/parameters/OptionsBaseClass.cpp @@ -24,5 +24,10 @@ namespace Moses { if (m == param.end()) return dfltval; return Scan<bool>(xmlrpc_c::value_string(m->second)); } +#else + bool + OptionsBaseClass:: + check(std::map<std::string, xmlrpc_c::value> const& param, + {} #endif } diff --git a/moses/parameters/ReportingOptions.cpp b/moses/parameters/ReportingOptions.cpp index fe56a7356..4cd55d073 100644 --- a/moses/parameters/ReportingOptions.cpp +++ b/moses/parameters/ReportingOptions.cpp @@ -153,5 +153,10 @@ namespace Moses { return true; } +#else + bool + ReportingOptions:: + update(std::map<std::string, xmlrpc_c::value>const& param) + {} #endif } diff --git a/moses/parameters/SearchOptions.cpp b/moses/parameters/SearchOptions.cpp index 958569e94..35028b8fb 100644 --- a/moses/parameters/SearchOptions.cpp +++ b/moses/parameters/SearchOptions.cpp @@ -102,6 +102,11 @@ namespace Moses return true; } +#else + bool + SearchOptions:: + update(std::map<std::string,xmlrpc_c::value>const& params) + {} #endif } diff --git a/moses/parameters/SyntaxOptions.cpp b/moses/parameters/SyntaxOptions.cpp index f76c187ec..e977dd4c0 100644 --- a/moses/parameters/SyntaxOptions.cpp +++ b/moses/parameters/SyntaxOptions.cpp @@ -77,6 +77,11 @@ namespace Moses { // xml_policy = Scan<XmlInputType>(xmlrpc_c::value_string(si->second)); return true; } +#else + bool + SyntaxOptions:: + update(std::map<std::string,xmlrpc_c::value>const& param) + {} #endif } |