Moses::OutputCollector Class Reference

#include <OutputCollector.h>

List of all members.

Public Member Functions

 OutputCollector (std::ostream *outStream=&std::cout, std::ostream *debugStream=&std::cerr)
 OutputCollector (std::string xout, std::string xerr="")
 ~OutputCollector ()
void HoldOutputStream ()
void HoldDebugStream ()
bool OutputIsCout () const
void Write (int sourceId, const std::string &output, const std::string &debug="")
void SetOutputStream (std::ostream *outStream)

Detailed Description

Makes sure output goes in the correct order when multi-threading

Definition at line 43 of file OutputCollector.h.

Constructor & Destructor Documentation

Moses::OutputCollector::OutputCollector ( std::ostream *  outStream = &std::cout,
std::ostream *  debugStream = &std::cerr 
) [inline]

Definition at line 46 of file OutputCollector.h.

Moses::OutputCollector::OutputCollector ( std::string  xout,
std::string  xerr = "" 
) [inline]

Definition at line 54 of file OutputCollector.h.

References UTIL_THROW_IF2.

Moses::OutputCollector::~OutputCollector (  )  [inline]

Definition at line 85 of file OutputCollector.h.

Member Function Documentation

void Moses::OutputCollector::HoldDebugStream (  )  [inline]

Definition at line 96 of file OutputCollector.h.

void Moses::OutputCollector::HoldOutputStream (  )  [inline]

Definition at line 92 of file OutputCollector.h.

bool Moses::OutputCollector::OutputIsCout (  )  const [inline]

Definition at line 100 of file OutputCollector.h.

Referenced by Moses::Incremental::Manager::OutputNBestList().

Here is the caller graph for this function:

void Moses::OutputCollector::SetOutputStream ( std::ostream *  outStream  )  [inline]

Definition at line 149 of file OutputCollector.h.

void Moses::OutputCollector::Write ( int  sourceId,
const std::string &  output,
const std::string &  debug = "" 
) [inline]

The documentation for this class was generated from the following file:

Generated on Thu Oct 8 00:33:44 2015 for Moses by  doxygen 1.5.9