Messages.h File Reference
#include "debug/Stream.h"
#include <array>
#include <limits>
Include dependency graph for Messages.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  DebugMessage
 manages configurable aspects of a debugs() message More...
 
class  DebugMessages
 a collection of DebugMessage objects (with fast access by message IDs) More...
 

Macros

#define Critical(id)   DebugMessageLevel<id>(DBG_CRITICAL)
 
#define Important(id)   DebugMessageLevel<id>(DBG_IMPORTANT)
 
#define Dbg(id, defaultLevel)   DebugMessageLevel<id>(defaultLevel)
 

Typedefs

typedef size_t DebugMessageId
 an identifier for messages supporting configuration via cache_log_message More...
 

Functions

template<DebugMessageId id>
int DebugMessageLevel (const int defaultLevel)
 

Variables

constexpr DebugMessageId DebugMessageIdUpperBound = 70
 The maximum used DebugMessage::id plus 1. Increase as you add new IDs. More...
 
DebugMessagesDebugMessagesConfig = nullptr
 Global configuration for DebugMessageLevel() (where/when supported). More...
 

Macro Definition Documentation

◆ Critical

#define Critical (   id)    DebugMessageLevel<id>(DBG_CRITICAL)

Definition at line 92 of file Messages.h.

◆ Dbg

#define Dbg (   id,
  defaultLevel 
)    DebugMessageLevel<id>(defaultLevel)

Definition at line 94 of file Messages.h.

◆ Important

#define Important (   id)    DebugMessageLevel<id>(DBG_IMPORTANT)

Definition at line 93 of file Messages.h.

Typedef Documentation

◆ DebugMessageId

Definition at line 22 of file Messages.h.

Function Documentation

◆ DebugMessageLevel()

template<DebugMessageId id>
int DebugMessageLevel ( const int  defaultLevel)
inline
Returns
configured debugging level for the given message or defaultLevel

Definition at line 82 of file Messages.h.

References DebugMessageIdUpperBound, and DebugMessagesConfig.

Variable Documentation

◆ DebugMessageIdUpperBound

constexpr DebugMessageId DebugMessageIdUpperBound = 70
constexpr

Definition at line 64 of file Messages.h.

Referenced by DebugMessageLevel(), and ParseDebugMessageId().

◆ DebugMessagesConfig

DebugMessages* DebugMessagesConfig = nullptr
inline

Definition at line 76 of file Messages.h.

Referenced by DebugMessageLevel().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors