File size: 605 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 |
/*
* Server.h
*
* Created on: 1 Apr 2016
* Author: hieu
*/
#pragma once
#include <xmlrpc-c/base.hpp>
#include <xmlrpc-c/registry.hpp>
#include <xmlrpc-c/server_abyss.hpp>
namespace Moses2
{
class System;
class ServerOptions;
class Manager;
class Server
{
public:
Server(ServerOptions &server_options, System &system);
virtual ~Server();
void run(System &system);
ServerOptions const&
options() const;
protected:
ServerOptions &m_server_options;
std::string m_pidfile;
xmlrpc_c::registry m_registry;
xmlrpc_c::methodPtr const m_translator;
};
} /* namespace Moses2 */
|