MCPcopy Create free account
hub / github.com/Xtra-Computing/thundersvm / CustomFormatSpecifier

Class CustomFormatSpecifier

include/thundersvm/util/log.h:1701–1718  ·  view source on GitHub ↗

@brief User-provided custom format specifier @see el::Helpers::installCustomFormatSpecifier @see FormatSpecifierValueResolver

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected