reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
resip::Subsystem Class Reference

Class used to specify what sub-system given sections of code belong to, for use by the logging system. More...

#include <Subsystem.hxx>

Inheritance diagram for resip::Subsystem:
[legend]

Public Member Functions

const Data & getSubsystem () const
 
Log::Level getLevel () const
 
void setLevel (Log::Level level)
 

Static Public Attributes

static Subsystem APP
 
static Subsystem CONTENTS
 
static Subsystem DNS
 
static Subsystem DUM
 
static Subsystem EEP
 
static Subsystem MEDIA
 
static Subsystem NONE
 
static Subsystem PRESENCE
 
static Subsystem PYTHON
 
static Subsystem SDP
 
static Subsystem SIP
 
static Subsystem TEST
 
static Subsystem TRANSACTION
 
static Subsystem TRANSPORT
 
static Subsystem STATS
 
static Subsystem REPRO
 
static Subsystem QPIDPROTON
 

Protected Member Functions

 Subsystem (const char *rhs)
 
 Subsystem (const Data &rhs)
 
Subsystem & operator= (const Data &rhs)
 

Protected Attributes

Data mSubsystem
 
Log::Level mLevel
 

Friends

EncodeStream & operator<< (EncodeStream &strm, const Subsystem &ss)
 

Detailed Description

Class used to specify what sub-system given sections of code belong to, for use by the logging system.

Note
The logging macros defined in Logger.hxx assume that the preprocessor macro RESIPROCATE_SUBSYSTEM is defined to an instance of this class. The logging macro uses this object to determine what logging level should be used, and what sub-system the logging statement should come from. So, in your code you might do something like the following:
#define RESIPROCATE_SUBSYSTEM Subsystem::APP
//...
void doStuff()
{
DebugLog(<< "Doing some stuff...");
}
#define DebugLog(args_)
Definition Logger.hxx:128

This would cause your log statement to be marked as coming from Subsystem::APP.

Definition at line 33 of file Subsystem.hxx.

Constructor & Destructor Documentation

◆ Subsystem() [1/2]

resip::Subsystem::Subsystem ( const char *  rhs)
inlineexplicitprotected

Definition at line 59 of file Subsystem.hxx.

◆ Subsystem() [2/2]

resip::Subsystem::Subsystem ( const Data &  rhs)
inlineexplicitprotected

Definition at line 60 of file Subsystem.hxx.

Member Function Documentation

◆ getLevel()

Log::Level resip::Subsystem::getLevel ( ) const
inline

Definition at line 56 of file Subsystem.hxx.

◆ getSubsystem()

const Data & Subsystem::getSubsystem ( ) const

Definition at line 23 of file Subsystem.cxx.

◆ operator=()

Subsystem & resip::Subsystem::operator= ( const Data &  rhs)
protected

◆ setLevel()

void resip::Subsystem::setLevel ( Log::Level  level)
inline

Definition at line 57 of file Subsystem.hxx.

Friends And Related Symbol Documentation

◆ operator<<

EncodeStream & operator<< ( EncodeStream &  strm,
const Subsystem &  ss 
)
friend

Member Data Documentation

◆ APP

Subsystem Subsystem::APP
static

Definition at line 37 of file Subsystem.hxx.

◆ CONTENTS

Subsystem Subsystem::CONTENTS
static

Definition at line 38 of file Subsystem.hxx.

◆ DNS

Subsystem Subsystem::DNS
static

Definition at line 39 of file Subsystem.hxx.

◆ DUM

Subsystem Subsystem::DUM
static

Definition at line 40 of file Subsystem.hxx.

◆ EEP

Subsystem Subsystem::EEP
static

Definition at line 41 of file Subsystem.hxx.

◆ MEDIA

Subsystem Subsystem::MEDIA
static

Definition at line 42 of file Subsystem.hxx.

◆ mLevel

Log::Level resip::Subsystem::mLevel
protected

Definition at line 64 of file Subsystem.hxx.

◆ mSubsystem

Data resip::Subsystem::mSubsystem
protected

Definition at line 63 of file Subsystem.hxx.

◆ NONE

Subsystem Subsystem::NONE
static

Definition at line 43 of file Subsystem.hxx.

◆ PRESENCE

Subsystem Subsystem::PRESENCE
static

Definition at line 44 of file Subsystem.hxx.

◆ PYTHON

Subsystem Subsystem::PYTHON
static

Definition at line 45 of file Subsystem.hxx.

◆ QPIDPROTON

Subsystem Subsystem::QPIDPROTON
static

Definition at line 53 of file Subsystem.hxx.

◆ REPRO

Subsystem Subsystem::REPRO
static

Definition at line 52 of file Subsystem.hxx.

◆ SDP

Subsystem Subsystem::SDP
static

Definition at line 46 of file Subsystem.hxx.

◆ SIP

Subsystem Subsystem::SIP
static

Definition at line 47 of file Subsystem.hxx.

◆ STATS

Subsystem Subsystem::STATS
static

Definition at line 51 of file Subsystem.hxx.

◆ TEST

Subsystem Subsystem::TEST
static

Definition at line 48 of file Subsystem.hxx.

◆ TRANSACTION

Subsystem Subsystem::TRANSACTION
static

Definition at line 49 of file Subsystem.hxx.

◆ TRANSPORT

Subsystem Subsystem::TRANSPORT
static

Definition at line 50 of file Subsystem.hxx.


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