mosesdecoder/contrib/moses2/TranslationTask.h

26 lines
351 B
C
Raw Normal View History

2015-11-10 14:28:17 +03:00
#pragma once
#include <string>
2015-11-13 00:58:07 +03:00
#include "legacy/ThreadPool.h"
2015-11-10 14:28:17 +03:00
2015-12-10 23:49:30 +03:00
namespace Moses2
{
2015-11-10 14:28:17 +03:00
class System;
2016-02-26 14:52:35 +03:00
class ManagerBase;
2015-11-10 14:28:17 +03:00
class Manager;
2016-03-31 23:00:16 +03:00
class TranslationTask: public Task
2015-11-10 14:28:17 +03:00
{
public:
2015-12-08 21:50:19 +03:00
2016-03-31 23:00:16 +03:00
TranslationTask(System &system, const std::string &line, long translationId);
virtual ~TranslationTask();
virtual void Run();
2015-11-10 14:28:17 +03:00
protected:
ManagerBase *m_mgr;
2015-11-10 14:28:17 +03:00
};
2015-12-10 23:49:30 +03:00
}