struct named_formatters

Declaration

struct named_formatters { /* full declaration omitted */ };

Description

Allows you to contain multiple formatters, and specify a %spacer between them. You have a %spacer string, and within it, you can escape your contained formatters.

This allows you: - to hold multiple formatters - each formatter is given a name, when being added - you have a %spacer string, which contains what is to be prepended or appended to the string (by default, prepended) - a formatter is escaped with @cchars, like this @cif you want to write the @cjust double it, like this: "this %% gets written" Example: Assuming you'd use the above in code You could have an output like this:

Declared at: libs/pika/logging/include/pika/logging/format/named_write.hpp:94

Method Overview

  • public void add(const std::string & name, pika::util::logging::detail::named_formatters::ptr_type p)
  • public void configure(const std::string & name, const std::string & configure_str)
  • public named_formatters()
  • public pika::util::logging::detail::named_formatters & string(const std::string & str)

Methods

void add(const std::string& name,
         pika::util::logging::detail::
             named_formatters::ptr_type p)

Declared at: libs/pika/logging/include/pika/logging/format/named_write.hpp:109

Parameters

const std::string& name
pika::util::logging::detail::named_formatters:: ptr_type p

void configure(const std::string& name,
               const std::string& configure_str)

Declared at: libs/pika/logging/include/pika/logging/format/named_write.hpp:120

Parameters

const std::string& name
const std::string& configure_str

named_formatters()

Declared at: libs/pika/logging/include/pika/logging/format/named_write.hpp:100

pika::util::logging::detail::named_formatters&
string(const std::string& str)

Declared at: libs/pika/logging/include/pika/logging/format/named_write.hpp:102

Parameters

const std::string& str