diff options
author | James Zhang <jzhang331@bloomberg.net> | 2015-03-07 02:37:07 +0300 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2015-03-12 00:33:17 +0300 |
commit | 23704613deb69a2169abeee2e7c5e9d3cbe3674a (patch) | |
tree | 26b1e080353a17319a9902c48f672ed9282b83a6 /moses/OutputCollector.h | |
parent | 8b61f396a7558bf628c2e94a9583023b9ae34a8c (diff) |
added a simple translation interface
Diffstat (limited to 'moses/OutputCollector.h')
-rw-r--r-- | moses/OutputCollector.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/moses/OutputCollector.h b/moses/OutputCollector.h index 22cfb46a6..647b81c3e 100644 --- a/moses/OutputCollector.h +++ b/moses/OutputCollector.h @@ -95,6 +95,8 @@ public: m_debugs[sourceId] = debug; } } + + private: std::map<int,std::string> m_outputs; std::map<int,std::string> m_debugs; @@ -106,6 +108,12 @@ private: #ifdef WITH_THREADS boost::mutex m_mutex; #endif + +public: + void SetOutputStream(std::ostream* outStream){ + m_outStream = outStream; + } + }; } // namespace Moses |