Static class that contains helper functions for el::Level.
More...
#include <easylogging++.h>
Static class that contains helper functions for el::Level.
Casts int(ushort) to level, useful for iterating through enum.
Casts int(ushort) to level, useful for iterating through enum.
Casts int(ushort) to level, useful for iterating through enum.
Casts level to int, useful for iterating through enum.
Casts level to int, useful for iterating through enum.
Casts level to int, useful for iterating through enum.
static Level el::LevelHelper::convertFromString |
( |
const char * |
levelStr | ) |
|
|
inlinestatic |
Converts from levelStr to Level.
- Parameters
-
levelStr | Upper 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
-
levelStr | Upper 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
-
levelStr | Upper 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.
Applies specified function to each level starting from startIndex.
- Parameters
-
startIndex | initial 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. |
fn | function to apply with each level. This bool represent whether or not to stop iterating through levels. |
Applies specified function to each level starting from startIndex.
- Parameters
-
startIndex | initial 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. |
fn | function to apply with each level. This bool represent whether or not to stop iterating through levels. |
Applies specified function to each level starting from startIndex.
- Parameters
-
startIndex | initial 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. |
fn | function to apply with each level. This bool represent whether or not to stop iterating through levels. |
Represents maximum valid level. This is used internally and you should not need it.
Represents minimum valid level. Useful when iterating through enum.
The documentation for this class was generated from the following files: