meta-information for debugs() or a similar debugging call More...

#include <Stream.h>

Collaboration diagram for Debug::Context:

Public Member Functions

 Context (const int aSectionLevel, const int aLevel)
 

Public Attributes

int section
 the debug section of the debugs() call More...
 
int level
 minimum debugging level required by the debugs() call More...
 
int sectionLevel
 maximum debugging level allowed during the call More...
 

Private Member Functions

void rewind (const int aSection, const int aLevel)
 Optimization: avoids new Context creation for every debugs(). More...
 
void formatStream ()
 configures default formatting for the debugging stream More...
 

Private Attributes

Contextupper
 previous or parent record in nested debugging calls More...
 
std::ostringstream buf
 debugs() output sink More...
 
bool forceAlert
 the current debugs() will be a syslog ALERT More...
 
bool waitingForIdle
 

Friends

class Debug
 
class DebugMessageHeader
 

Detailed Description

Definition at line 54 of file Stream.h.

Constructor & Destructor Documentation

◆ Context()

Debug::Context::Context ( const int  aSectionLevel,
const int  aLevel 
)

Definition at line 1271 of file debug.cc.

References formatStream().

Member Function Documentation

◆ formatStream()

void Debug::Context::formatStream ( )
private

Definition at line 1301 of file debug.cc.

Referenced by Context().

◆ rewind()

void Debug::Context::rewind ( const int  aSection,
const int  aLevel 
)
private

Definition at line 1284 of file debug.cc.

References assert, Debug::Current, and Debug::Levels.

Referenced by Debug::Start().

Friends And Related Function Documentation

◆ Debug

friend class Debug
friend

Definition at line 64 of file Stream.h.

◆ DebugMessageHeader

friend class DebugMessageHeader
friend

Definition at line 65 of file Stream.h.

Member Data Documentation

◆ buf

std::ostringstream Debug::Context::buf
private

Definition at line 70 of file Stream.h.

Referenced by Debug::Finish(), Debug::LogMessage(), and Debug::Start().

◆ forceAlert

bool Debug::Context::forceAlert
private

Definition at line 71 of file Stream.h.

Referenced by Debug::Finish(), and Debug::ForceAlert().

◆ level

int Debug::Context::level

Definition at line 60 of file Stream.h.

Referenced by Debug::Finish(), and Debug::Level().

◆ section

int Debug::Context::section

Definition at line 59 of file Stream.h.

◆ sectionLevel

int Debug::Context::sectionLevel

Definition at line 61 of file Stream.h.

Referenced by Debug::SectionLevel().

◆ upper

Context* Debug::Context::upper
private

Definition at line 69 of file Stream.h.

Referenced by Debug::Finish(), and Debug::LogWaitingForIdle().

◆ waitingForIdle

bool Debug::Context::waitingForIdle
private

whether this debugs() call originated when we were too busy handling other logging needs (e.g., logging another concurrent debugs() call)

Definition at line 75 of file Stream.h.

Referenced by Debug::Finish(), and Debug::Start().


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors