Static class that contains helper functions for el::ConfigurationType.
More...
#include <easylogging++.h>
Static class that contains helper functions for el::ConfigurationType.
◆ castFromInt()
Casts int(ushort) to configurationt type, useful for iterating through enum.
◆ castToInt()
Casts configuration type to int, useful for iterating through enum.
◆ convertFromString()
Converts from configStr to ConfigurationType.
- Parameters
-
| configStr | Upper case string based configuration type. Lower case is also valid but providing upper case is recommended. |
◆ convertToString()
Converts configuration type to associated const char*.
- Returns
- Upper case string based configuration type.
◆ forEachConfigType()
| void el::ConfigurationTypeHelper::forEachConfigType |
( |
base::type::EnumType * | startIndex, |
|
|
const std::function< bool(void)> & | fn ) |
|
inlinestatic |
Applies specified function to each configuration type starting from startIndex.
- Parameters
-
| startIndex | initial value to start the iteration from. This is passed by pointer and is left-shifted so this can be used inside function (fn) to represent current configuration type. |
| fn | function to apply with each configuration type. This bool represent whether or not to stop iterating through configurations. |
◆ kMaxValid
Represents maximum valid configuration type. This is used internally and you should not need it.
◆ kMinValid
Represents minimum valid configuration type. Useful when iterating through enum.
The documentation for this class was generated from the following files: