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 44 of file OutputCollector.h.

Constructor & Destructor Documentation

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

Definition at line 47 of file OutputCollector.h.

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

Definition at line 55 of file OutputCollector.h.

References UTIL_THROW_IF2.

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

Definition at line 86 of file OutputCollector.h.

Member Function Documentation

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

Definition at line 97 of file OutputCollector.h.

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

Definition at line 93 of file OutputCollector.h.

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

Definition at line 101 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 150 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 Jul 6 00:33:25 2017 for Moses by  doxygen 1.5.9