mosesdecoder/mert/PreProcessFilter.h
Tetsuo Kiso 60df4ba931 Small changes to just improve the quality.
- Use forward declaration to reduce dependencies.
- Add "virtual" to the destructor of _fdstream class.
- Avoid using namespace std in header.
  - We have already used in mert a lot, though. It should be fixed.
- Fix warnings "-Wreorder".
- Fix the usage of enum.
2012-05-10 06:57:44 +09:00

26 lines
526 B
C++

#ifndef MERT_PREPROCESSFILTER_H_
#define MERT_PREPROCESSFILTER_H_
#include <string>
class ofdstream;
class ifdstream;
/*
* This class runs the filter command in a child process and
* then use this filter to process given sentences.
*/
class PreProcessFilter
{
public:
explicit PreProcessFilter(const std::string& filterCommand);
std::string ProcessSentence(const std::string& sentence);
~PreProcessFilter();
private:
ofdstream* m_toFilter;
ifdstream* m_fromFilter;
};
#endif // MERT_PREPROCESSFILTER_H_