File size: 742 Bytes
158b61b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// -*- c++ -*-
#pragma once

#include "moses/Util.h"
#include "moses/ChartManager.h"
#include "moses/Hypothesis.h"
#include "moses/Manager.h"
#include "moses/StaticData.h"
#include "moses/ThreadPool.h"

#if PT_UG
#include "moses/TranslationModel/UG/mmsapt.h"
#endif

#include <xmlrpc-c/base.hpp>
#include <xmlrpc-c/registry.hpp>
#include <xmlrpc-c/server_abyss.hpp>


namespace MosesServer
{
class
  Updater: public xmlrpc_c::method
{

  typedef std::map<std::string, xmlrpc_c::value> params_t;


  std::string m_src, m_trg, m_aln;
  bool m_bounded, m_add2ORLM;

public:
  Updater();

  void
  execute(xmlrpc_c::paramList const& paramList,
          xmlrpc_c::value * const  retvalP);

  void
  breakOutParams(const params_t& params);

};

}