Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

scim_debug.h File Reference

Defines class scim::DebugOutput and related MACROS. More...

Go to the source code of this file.

Namespaces

namespace  scim

The mask for debug messages filtering.

#define SCIM_DEBUG_AllMask   (~0)
#define SCIM_DEBUG_MainMask   1
#define SCIM_DEBUG_ConfigMask   2
#define SCIM_DEBUG_IMEngineMask   4
#define SCIM_DEBUG_BackEndMask   8
#define SCIM_DEBUG_FrontEndMask   16
#define SCIM_DEBUG_ModuleMask   32
#define SCIM_DEBUG_UtilityMask   64
#define SCIM_DEBUG_IConvMask   128
#define SCIM_DEBUG_LookupTableMask   256
#define SCIM_DEBUG_SocketMask   512

The macros to simplify the debug message print method.

You can output debug messages by this way: SCIM_DEBUG_IMENGINE(1) << "Hello World!\n";

#define SCIM_DEBUG(mask, level)   (scim::DebugOutput(mask,level) << __FILE__ << ":" << __LINE__ << " > ")
#define SCIM_DEBUG_MAIN(level)   SCIM_DEBUG(SCIM_DEBUG_MainMask,level)
#define SCIM_DEBUG_CONFIG(level)   SCIM_DEBUG(SCIM_DEBUG_ConfigMask,level)
#define SCIM_DEBUG_IMENGINE(level)   SCIM_DEBUG(SCIM_DEBUG_IMEngineMask,level)
#define SCIM_DEBUG_BACKEND(level)   SCIM_DEBUG(SCIM_DEBUG_BackEndMask,level)
#define SCIM_DEBUG_FRONTEND(level)   SCIM_DEBUG(SCIM_DEBUG_FrontEndMask,level)
#define SCIM_DEBUG_MODULE(level)   SCIM_DEBUG(SCIM_DEBUG_ModuleMask,level)
#define SCIM_DEBUG_UTILITY(level)   SCIM_DEBUG(SCIM_DEBUG_UtilityMask,level)
#define SCIM_DEBUG_ICONV(level)   SCIM_DEBUG(SCIM_DEBUG_IConvMask,level)
#define SCIM_DEBUG_LOOKUPTABLE(level)   SCIM_DEBUG(SCIM_DEBUG_LookupTableMask,level)
#define SCIM_DEBUG_SOCKET(level)   SCIM_DEBUG(SCIM_DEBUG_SocketMask,level)

Defines

#define SCIM_DEBUG_MAX_VERBOSE   7


Detailed Description

Defines class scim::DebugOutput and related MACROS.

All of the debug information should be output via scim::DebugOutput class. This class provides message filter and redirection ability.

Definition in file scim_debug.h.


Define Documentation

#define SCIM_DEBUG_MAX_VERBOSE   7
 

Definition at line 38 of file scim_debug.h.

#define SCIM_DEBUG_AllMask   (~0)
 

Show all messages.

Definition at line 46 of file scim_debug.h.

#define SCIM_DEBUG_MainMask   1
 

Show messages of main application.

Definition at line 47 of file scim_debug.h.

#define SCIM_DEBUG_ConfigMask   2
 

Show messages of Config objects

Definition at line 48 of file scim_debug.h.

#define SCIM_DEBUG_IMEngineMask   4
 

Show messages of IMEngine objects

Definition at line 49 of file scim_debug.h.

#define SCIM_DEBUG_BackEndMask   8
 

Show messages of BackEnd objects

Definition at line 50 of file scim_debug.h.

#define SCIM_DEBUG_FrontEndMask   16
 

Show messages of FrontEnd objects

Definition at line 51 of file scim_debug.h.

#define SCIM_DEBUG_ModuleMask   32
 

Show messages of Module objects

Definition at line 52 of file scim_debug.h.

#define SCIM_DEBUG_UtilityMask   64
 

Show messages of utility functions

Definition at line 53 of file scim_debug.h.

#define SCIM_DEBUG_IConvMask   128
 

Show messages of IConvert objects

Definition at line 54 of file scim_debug.h.

#define SCIM_DEBUG_LookupTableMask   256
 

Show messages of LookupTable objects

Definition at line 55 of file scim_debug.h.

#define SCIM_DEBUG_SocketMask   512
 

Show messages of Socket objects

Definition at line 56 of file scim_debug.h.

#define SCIM_DEBUG mask,
level   )     (scim::DebugOutput(mask,level) << __FILE__ << ":" << __LINE__ << " > ")
 

Definition at line 69 of file scim_debug.h.

#define SCIM_DEBUG_MAIN level   )     SCIM_DEBUG(SCIM_DEBUG_MainMask,level)
 

Definition at line 70 of file scim_debug.h.

#define SCIM_DEBUG_CONFIG level   )     SCIM_DEBUG(SCIM_DEBUG_ConfigMask,level)
 

Definition at line 71 of file scim_debug.h.

#define SCIM_DEBUG_IMENGINE level   )     SCIM_DEBUG(SCIM_DEBUG_IMEngineMask,level)
 

Definition at line 72 of file scim_debug.h.

#define SCIM_DEBUG_BACKEND level   )     SCIM_DEBUG(SCIM_DEBUG_BackEndMask,level)
 

Definition at line 73 of file scim_debug.h.

#define SCIM_DEBUG_FRONTEND level   )     SCIM_DEBUG(SCIM_DEBUG_FrontEndMask,level)
 

Definition at line 74 of file scim_debug.h.

#define SCIM_DEBUG_MODULE level   )     SCIM_DEBUG(SCIM_DEBUG_ModuleMask,level)
 

Definition at line 75 of file scim_debug.h.

#define SCIM_DEBUG_UTILITY level   )     SCIM_DEBUG(SCIM_DEBUG_UtilityMask,level)
 

Definition at line 76 of file scim_debug.h.

#define SCIM_DEBUG_ICONV level   )     SCIM_DEBUG(SCIM_DEBUG_IConvMask,level)
 

Definition at line 77 of file scim_debug.h.

#define SCIM_DEBUG_LOOKUPTABLE level   )     SCIM_DEBUG(SCIM_DEBUG_LookupTableMask,level)
 

Definition at line 78 of file scim_debug.h.

#define SCIM_DEBUG_SOCKET level   )     SCIM_DEBUG(SCIM_DEBUG_SocketMask,level)
 

Definition at line 79 of file scim_debug.h.


Generated on Tue Apr 19 00:10:59 2005 for scim by  doxygen 1.4.1