format_and_write classes know how to call the formatter and destination objects.
More...
Classes | |
| struct | use_cache |
| This uses a cache, when calling formatters/destinations - for writing a given message. More... | |
| struct | simple |
Formats the message, and writes it to destinations - calls operator() on the formatters , and operator() on the destinations. Ignores clear_format() commands. More... | |
| struct | simple_care_for_clear_format |
Formats the message, and writes it to destinations - calls operator() on the formatters , and operator() on the destinations. More... | |
format_and_write classes know how to call the formatter and destination objects.
Usually you'll be happy with the format_and_write::simple class - which simply calls operator() on the formatters , and operator() on the destinations.
Note that usually the formatter and destination class just have an operator(), which when called, formats the message or writes it to a destination. In case your formatters/destinations are more complex than that (for instance, more than a member function needs to be called), you'll have to implement your own format_and_write class.