|
Electroneum
|
Static class that contains helper functions for el::Level. More...
#include <easylogging++.h>


Static Public Member Functions | |
| static base::type::EnumType | castToInt (Level level) |
| Casts level to int, useful for iterating through enum. | |
| static Level | castFromInt (base::type::EnumType l) |
| Casts int(ushort) to level, useful for iterating through enum. | |
| static const char * | convertToString (Level level) |
| Converts level to associated const char*. | |
| static Level | convertFromStringPrefix (const char *levelStr) |
| Converts from prefix of levelStr to Level. | |
| static Level | convertFromString (const char *levelStr) |
| Converts from levelStr to Level. | |
| static void | forEachLevel (base::type::EnumType *startIndex, const std::function< bool(void)> &fn) |
| Applies specified function to each level starting from startIndex. | |
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. | |
| 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. | |
Static class that contains helper functions for el::Level.
Definition at line 616 of file easylogging++.h.
|
inlinestatic |
Casts int(ushort) to level, useful for iterating through enum.
Definition at line 627 of file easylogging++.h.
|
inlinestatic |
Casts level to int, useful for iterating through enum.
Definition at line 623 of file easylogging++.h.
|
static |
Converts from levelStr to Level.
| levelStr | Upper case string based level. Lower case is also valid but providing upper case is recommended. |
|
static |
Converts from prefix of levelStr to Level.
| levelStr | Upper case string based level. Lower case is also valid but providing upper case is recommended. |
|
static |
Converts level to associated const char*.

|
static |
Applies specified function to each level starting from startIndex.
| 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. |
|
static |
Represents maximum valid level. This is used internally and you should not need it.
Definition at line 621 of file easylogging++.h.
|
static |
Represents minimum valid level. Useful when iterating through enum.
Definition at line 619 of file easylogging++.h.