UniSet 2.32.1
Открытые типы | Открытые статические члены | Статические открытые данные | Друзья | Полный список членов класса
Структура Debug

#include <Debug.h>

Открытые типы

enum  type {
  NONE = 0 , INFO = (1 << 0) , INIT = (1 << 1) , WARN = (1 << 2) ,
  CRIT = (1 << 3) , LEVEL1 = (1 << 4) , LEVEL2 = (1 << 5) , LEVEL3 = (1 << 6) ,
  LEVEL4 = (1 << 7) , LEVEL5 = (1 << 8) , LEVEL6 = (1 << 9) , LEVEL7 = (1 << 10) ,
  LEVEL8 = (1 << 11) , LEVEL9 = (1 << 12) , REPOSITORY = (1 << 13) , SYSTEM = (1 << 14) ,
  EXCEPTION = (1 << 15)
}
 
typedef std::uint8_t verbosity
 

Открытые статические члены

static Debug::type value (std::string const &val)
 
static void showLevel (std::ostream &o, type level) noexcept
 
static void showTags (std::ostream &o) noexcept
 
static std::string str (Debug::type level) noexcept
 

Статические открытые данные

static type const ANY
 

Друзья

std::ostream & operator<< (std::ostream &os, Debug::type level) noexcept
 

Подробное описание

Ideally this should have been a namespace, but since we try to be compilable on older C++ compilators too, we use a struct instead. This is all the different debug levels that we have.

Методы

◆ showLevel()

void Debug::showLevel ( std::ostream & o,
type level )
staticnoexcept

Display the tags and descriptions of the current debug level of ds

◆ showTags()

void Debug::showTags ( std::ostream & o)
staticnoexcept

show all the possible tags that can be used for debugging

◆ value()

Debug::type Debug::value ( std::string const & val)
static

A function to convert symbolic string names on debug levels to their numerical value. example: level1,level2,-level3 supported '-' for disable debug level

Данные класса

◆ ANY

Debug::type const Debug::ANY
static
Инициализатор
= Debug::type(
Debug::INFO | Debug::INIT | Debug::WARN | Debug::CRIT |
Debug::LEVEL1 | Debug::LEVEL2 | Debug::LEVEL3 | Debug::LEVEL4 |
Debug::LEVEL5 | Debug::LEVEL6 | Debug::LEVEL7 | Debug::LEVEL8 |
Debug::LEVEL9 | Debug::REPOSITORY | Debug::SYSTEM |
Debug::EXCEPTION )