Moses::UserMessage Class Reference

#include <UserMessage.h>

List of all members.

Static Public Member Functions

static void SetOutput (bool toStderr, bool toQueue)
 whether messages to go to stderr, a queue to later display, or both
static void Add (const std::string &msg)
 add a message to be displayed
static std::string GetQueue ()
 get all messages in queue. Each is on a separate line. Clear queue afterwards

Static Protected Attributes

static bool m_toStderr = true
static bool m_toQueue = false
static std::queue< std::string > m_msgQueue


Detailed Description

User warnings/error messages. Not the same as tracing messages, this should be usable even if Moses front-end if GUI

Definition at line 34 of file UserMessage.h.


Member Function Documentation

static void Moses::UserMessage::Add ( const std::string &  msg  )  [static]

string Moses::UserMessage::GetQueue (  )  [static]

get all messages in queue. Each is on a separate line. Clear queue afterwards

Definition at line 49 of file UserMessage.cpp.

References m_msgQueue.

static void Moses::UserMessage::SetOutput ( bool  toStderr,
bool  toQueue 
) [inline, static]

whether messages to go to stderr, a queue to later display, or both

Definition at line 42 of file UserMessage.h.

References m_toQueue, and m_toStderr.


Member Data Documentation

queue< string > Moses::UserMessage::m_msgQueue [static, protected]

Definition at line 38 of file UserMessage.h.

Referenced by GetQueue().

bool Moses::UserMessage::m_toQueue = false [static, protected]

Definition at line 37 of file UserMessage.h.

Referenced by SetOutput().

bool Moses::UserMessage::m_toStderr = true [static, protected]

Definition at line 37 of file UserMessage.h.

Referenced by SetOutput().


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

Generated on Thu Jun 4 00:32:48 2015 for Moses by  doxygen 1.5.9