HOPS
HOPS class reference
Classes | Namespaces | Macros | Enumerations
MHO_Message.hh File Reference
#include <cstdlib>
#include <cstdint>
#include <iostream>
#include <mutex>
#include <ostream>
#include <set>
#include <sstream>
#include <stdio.h>
#include <string>
#include "MHO_SelfName.hh"
#include "MHO_TestAssertions.hh"
#include "MHO_Profiler.hh"

Go to the source code of this file.

Classes

class  hops::MHO_Message
 uses the singleton pattern (as we only have one terminal) More...
 
class  hops::MHO_MessageEndline
 Class MHO_MessageEndline. More...
 
class  hops::MHO_MessageNewline
 Class MHO_MessageNewline. More...
 

Namespaces

 hops
 

Macros

#define check_step_error(xVALUE, xKEY, xCONTENT)
 
#define check_step_fatal(xVALUE, xKEY, xCONTENT)
 
#define msg_debug(xKEY, xCONTENT)
 
#define msg_error(xKEY, xCONTENT)
 
#define msg_fatal(xKEY, xCONTENT)
 
#define msg_info(xKEY, xCONTENT)
 
#define msg_status(xKEY, xCONTENT)
 
#define msg_warn(xKEY, xCONTENT)
 
#define STR(str)   #str
 
#define STRING(str)   STR(str)
 
#define TODO_FIXME_MSG(x)
 

Enumerations

enum  hops::MHO_MessageLevel : int {
  hops::eSpecialLevel = -2 , hops::eSilentErrorLevel = -1 , hops::eFatalErrorLevel = 0 , hops::eErrorLevel = 1 ,
  hops::eWarningLevel = 2 , hops::eStatusLevel = 3 , hops::eInfoLevel = 4 , hops::eDebugLevel = 5
}
 

Class Documentation

◆ hops::MHO_MessageEndline

class hops::MHO_MessageEndline

◆ hops::MHO_MessageNewline

class hops::MHO_MessageNewline

Macro Definition Documentation

◆ check_step_error

#define check_step_error (   xVALUE,
  xKEY,
  xCONTENT 
)

◆ check_step_fatal

#define check_step_fatal (   xVALUE,
  xKEY,
  xCONTENT 
)

◆ msg_debug

#define msg_debug (   xKEY,
  xCONTENT 
)

◆ msg_error

#define msg_error (   xKEY,
  xCONTENT 
)
Value:
do \
{ \
MHO_Message::GetInstance().Lock(); \
MHO_Message::GetInstance().SendMessage(eError, xKEY) << xCONTENT; \
MHO_Message::GetInstance().Unlock(); \
} \
while(0)

◆ msg_fatal

#define msg_fatal (   xKEY,
  xCONTENT 
)
Value:
do \
{ \
MHO_Message::GetInstance().Lock(); \
MHO_Message::GetInstance().SendMessage(eFatal, xKEY) << xCONTENT; \
MHO_Message::GetInstance().Unlock(); \
} \
while(0)

◆ msg_info

#define msg_info (   xKEY,
  xCONTENT 
)
Value:
do \
{ \
MHO_Message::GetInstance().Lock(); \
MHO_Message::GetInstance().SendMessage(eInfo, xKEY) << xCONTENT; \
MHO_Message::GetInstance().Unlock(); \
} \
while(0)

◆ msg_status

#define msg_status (   xKEY,
  xCONTENT 
)
Value:
do \
{ \
MHO_Message::GetInstance().Lock(); \
MHO_Message::GetInstance().SendMessage(eStatus, xKEY) << xCONTENT; \
MHO_Message::GetInstance().Unlock(); \
} \
while(0)

◆ msg_warn

#define msg_warn (   xKEY,
  xCONTENT 
)
Value:
do \
{ \
MHO_Message::GetInstance().Lock(); \
MHO_Message::GetInstance().SendMessage(eWarning, xKEY) << xCONTENT; \
MHO_Message::GetInstance().Unlock(); \
} \
while(0)

◆ STR

#define STR (   str)    #str

◆ STRING

#define STRING (   str)    STR(str)

◆ TODO_FIXME_MSG

#define TODO_FIXME_MSG (   x)