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 ()
void HoldOutputStream ()
void HoldDebugStream ()
bool OutputIsCout () const
void Write (int sourceId, const std::string &output, const std::string &debug="")


Detailed Description

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

Definition at line 42 of file OutputCollector.h.


Constructor & Destructor Documentation

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

Definition at line 45 of file OutputCollector.h.

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

Definition at line 49 of file OutputCollector.h.


Member Function Documentation

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

Definition at line 60 of file OutputCollector.h.

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

Definition at line 56 of file OutputCollector.h.

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

Definition at line 64 of file OutputCollector.h.

Referenced by MosesChartCmd::IOWrapper::OutputNBestList().

Here is the caller graph for this function:

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 Mon Dec 22 00:32:02 2014 for Moses by  doxygen 1.5.9