MsgService.h File Reference

#include <iosfwd>
#include <map>
#include <string>
#include <stdexcept>
#include "MessageService/Msg.h"
#include "MessageService/MsgStream.h"
#include "MessageService/MsgCatStream.h"

Go to the source code of this file.

Classes

class  MSGException
class  MsgService
class  MsgService::Init

Defines

#define TOKCAT(x, y)   x##y
#define TOKCAT2(x, y)   TOKCAT(x,y)
#define LINECAT(x)   TOKCAT2(x, __LINE__ )
#define CVSID(x)   static const char* __CVSID__ = x
#define MSG(s, l)
#define MSGSTREAM(s, l)   ((*(MsgService::Instance())->GetStream(s))(l,__FILE__,__CVSID__,__LINE__))
#define MSG_ONLY_COUNT(s, l)
#define MAXMSG(s, l, c)

Variables

static MsgService::Init __msginit

Define Documentation

#define CVSID (  )     static const char* __CVSID__ = x

Definition at line 151 of file MsgService.h.

#define LINECAT (  )     TOKCAT2(x, __LINE__ )

Definition at line 141 of file MsgService.h.

#define MAXMSG ( s,
l,
 ) 
Value:
static int LINECAT(MSGCNT) =0; \
  const char* LINECAT(MSGADD) = (++LINECAT(MSGCNT)==c)?"..Last Message (counting continues).. ":""; \
  if(LINECAT(MSGCNT) > c || LINECAT(MSGCNT) < 0) {MSG_ONLY_COUNT(s,l);} else MSG(s,l) << LINECAT(MSGADD)

Definition at line 194 of file MsgService.h.

#define MSG ( s,
 ) 
Value:
if ( !MsgService::Instance()->IsActive(s,l) ) { ; } else \
   ((*(MsgService::Instance())->GetStream(s))(l,__FILE__,__CVSID__,__LINE__))

Definition at line 164 of file MsgService.h.

#define MSG_ONLY_COUNT ( s,
 ) 
Value:
if ( !MsgService::Instance()->IsActive(s,l) ) { ; } else \
   ((MsgService::Instance())->GetStream(s)->LogPrint(l,__FILE__))

Definition at line 190 of file MsgService.h.

#define MSGSTREAM ( s,
 )     ((*(MsgService::Instance())->GetStream(s))(l,__FILE__,__CVSID__,__LINE__))
#define TOKCAT ( x,
 )     x##y

Definition at line 135 of file MsgService.h.

#define TOKCAT2 ( x,
 )     TOKCAT(x,y)

Definition at line 138 of file MsgService.h.


Variable Documentation

Definition at line 129 of file MsgService.h.


Generated on 12 Mar 2019 for loon by  doxygen 1.6.1