ifw  0.0.1-dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Static Public Member Functions | Static Public Attributes | List of all members
el::LevelHelper Class Reference

Static class that contains helper functions for el::Level. More...

#include <easylogging++.h>

Inheritance diagram for el::LevelHelper:
el::base::StaticClass el::base::StaticClass el::base::StaticClass

Static Public Member Functions

static base::type::EnumType castToInt (Level level)
 Casts level to int, useful for iterating through enum. More...
 
static Level castFromInt (base::type::EnumType l)
 Casts int(ushort) to level, useful for iterating through enum. More...
 
static const char * convertToString (Level level)
 Converts level to associated const char*. More...
 
static Level convertFromString (const char *levelStr)
 Converts from levelStr to Level. More...
 
static void forEachLevel (base::type::EnumType *startIndex, const std::function< bool(void)> &fn)
 Applies specified function to each level starting from startIndex. More...
 
static base::type::EnumType castToInt (Level level)
 Casts level to int, useful for iterating through enum. More...
 
static Level castFromInt (base::type::EnumType l)
 Casts int(ushort) to level, useful for iterating through enum. More...
 
static const char * convertToString (Level level)
 Converts level to associated const char*. More...
 
static Level convertFromString (const char *levelStr)
 Converts from levelStr to Level. More...
 
static void forEachLevel (base::type::EnumType *startIndex, const std::function< bool(void)> &fn)
 Applies specified function to each level starting from startIndex. More...
 
static base::type::EnumType castToInt (Level level)
 Casts level to int, useful for iterating through enum. More...
 
static Level castFromInt (base::type::EnumType l)
 Casts int(ushort) to level, useful for iterating through enum. More...
 
static const char * convertToString (Level level)
 Converts level to associated const char*. More...
 
static Level convertFromString (const char *levelStr)
 Converts from levelStr to Level. More...
 
static void forEachLevel (base::type::EnumType *startIndex, const std::function< bool(void)> &fn)
 Applies specified function to each level starting from startIndex. More...
 

Static Public Attributes

static const base::type::EnumType kMinValid = static_cast<base::type::EnumType>(Level::Trace)
 Represents minimum valid level. Useful when iterating through enum. More...
 
static const base::type::EnumType kMaxValid = static_cast<base::type::EnumType>(Level::Info)
 Represents maximum valid level. This is used internally and you should not need it. More...
 

Detailed Description

Static class that contains helper functions for el::Level.

Member Function Documentation

static Level el::LevelHelper::castFromInt ( base::type::EnumType  l)
inlinestatic

Casts int(ushort) to level, useful for iterating through enum.

static Level el::LevelHelper::castFromInt ( base::type::EnumType  l)
inlinestatic

Casts int(ushort) to level, useful for iterating through enum.

static Level el::LevelHelper::castFromInt ( base::type::EnumType  l)
inlinestatic

Casts int(ushort) to level, useful for iterating through enum.

static base::type::EnumType el::LevelHelper::castToInt ( Level  level)
inlinestatic

Casts level to int, useful for iterating through enum.

static base::type::EnumType el::LevelHelper::castToInt ( Level  level)
inlinestatic

Casts level to int, useful for iterating through enum.

static base::type::EnumType el::LevelHelper::castToInt ( Level  level)
inlinestatic

Casts level to int, useful for iterating through enum.

static Level el::LevelHelper::convertFromString ( const char *  levelStr)
inlinestatic

Converts from levelStr to Level.

Parameters
levelStrUpper case string based level. Lower case is also valid but providing upper case is recommended.
static Level el::LevelHelper::convertFromString ( const char *  levelStr)
inlinestatic

Converts from levelStr to Level.

Parameters
levelStrUpper case string based level. Lower case is also valid but providing upper case is recommended.
static Level el::LevelHelper::convertFromString ( const char *  levelStr)
inlinestatic

Converts from levelStr to Level.

Parameters
levelStrUpper case string based level. Lower case is also valid but providing upper case is recommended.
static const char* el::LevelHelper::convertToString ( Level  level)
inlinestatic

Converts level to associated const char*.

Returns
Upper case string based level.
static const char* el::LevelHelper::convertToString ( Level  level)
inlinestatic

Converts level to associated const char*.

Returns
Upper case string based level.
static const char* el::LevelHelper::convertToString ( Level  level)
inlinestatic

Converts level to associated const char*.

Returns
Upper case string based level.
static void el::LevelHelper::forEachLevel ( base::type::EnumType startIndex,
const std::function< bool(void)> &  fn 
)
inlinestatic

Applies specified function to each level starting from startIndex.

Parameters
startIndexinitial value to start the iteration from. This is passed as pointer and is left-shifted so this can be used inside function (fn) to represent current level.
fnfunction to apply with each level. This bool represent whether or not to stop iterating through levels.
static void el::LevelHelper::forEachLevel ( base::type::EnumType startIndex,
const std::function< bool(void)> &  fn 
)
inlinestatic

Applies specified function to each level starting from startIndex.

Parameters
startIndexinitial value to start the iteration from. This is passed as pointer and is left-shifted so this can be used inside function (fn) to represent current level.
fnfunction to apply with each level. This bool represent whether or not to stop iterating through levels.
static void el::LevelHelper::forEachLevel ( base::type::EnumType startIndex,
const std::function< bool(void)> &  fn 
)
inlinestatic

Applies specified function to each level starting from startIndex.

Parameters
startIndexinitial value to start the iteration from. This is passed as pointer and is left-shifted so this can be used inside function (fn) to represent current level.
fnfunction to apply with each level. This bool represent whether or not to stop iterating through levels.

Member Data Documentation

static const base::type::EnumType el::LevelHelper::kMaxValid = static_cast<base::type::EnumType>(Level::Info)
static

Represents maximum valid level. This is used internally and you should not need it.

static const base::type::EnumType el::LevelHelper::kMinValid = static_cast<base::type::EnumType>(Level::Trace)
static

Represents minimum valid level. Useful when iterating through enum.


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