@brief User-provided custom format specifier @see el::Helpers::installCustomFormatSpecifier @see FormatSpecifierValueResolver
| 1699 | /// @see el::Helpers::installCustomFormatSpecifier |
| 1700 | /// @see FormatSpecifierValueResolver |
| 1701 | class CustomFormatSpecifier { |
| 1702 | public: |
| 1703 | CustomFormatSpecifier(const char* formatSpecifier, const FormatSpecifierValueResolver& resolver) : |
| 1704 | m_formatSpecifier(formatSpecifier), m_resolver(resolver) {} |
| 1705 | inline const char* formatSpecifier(void) const { |
| 1706 | return m_formatSpecifier; |
| 1707 | } |
| 1708 | inline const FormatSpecifierValueResolver& resolver(void) const { |
| 1709 | return m_resolver; |
| 1710 | } |
| 1711 | inline bool operator==(const char* formatSpecifier) { |
| 1712 | return strcmp(m_formatSpecifier, formatSpecifier) == 0; |
| 1713 | } |
| 1714 | |
| 1715 | private: |
| 1716 | const char* m_formatSpecifier; |
| 1717 | FormatSpecifierValueResolver m_resolver; |
| 1718 | }; |
| 1719 | /// @brief Represents single configuration that has representing level, configuration type and a string based value. |
| 1720 | /// |
| 1721 | /// @detail String based value means any value either its boolean, integer or string itself, it will be embedded inside quotes |
nothing calls this directly
no outgoing calls
no test coverage detected