Class CustomFormatSpecifier

Synopsis

#include <src/easylogging++.h>

class CustomFormatSpecifier

Description

User-provided custom format specifier.

See
el::Helpers::installCustomFormatSpecifier
See
FormatSpecifierValueResolver

Mentioned in

Methods

CustomFormatSpecifier
formatSpecifier
operator==
resolver

Mentioned in

Source

Lines 1650-1667 in src/easylogging++.h.

class CustomFormatSpecifier {
 public:
  CustomFormatSpecifier(const char* formatSpecifier, const FormatSpecifierValueResolver& resolver) :
    m_formatSpecifier(formatSpecifier), m_resolver(resolver) {}
  inline const char* formatSpecifier(void) const {
    return m_formatSpecifier;
  }
  inline const FormatSpecifierValueResolver& resolver(void) const {
    return m_resolver;
  }
  inline bool operator==(const char* formatSpecifier) {
    return strcmp(m_formatSpecifier, formatSpecifier) == 0;
  }

 private:
  const char* m_formatSpecifier;
  FormatSpecifierValueResolver m_resolver;
};





Add Discussion

Log in to comment